[help] Targets giving strange errors after updating to 1.11.3 and also after going back to 1.3.2 #1526
-
Help
DescriptionHello, I had a long pipeline of targets for my work, which was running smoothly, but I installed the newer version of Here is a basic snippet example that doesn't work:
The
And here is the function
I would really appreciate any help on this. Feeling lost! Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Let's see if we can work through this methodically.
I'm not sure how to run the code you pasted because it doesn't seem to define the library(targets)
list(
tar_target(states0_1, c("U")),
tar_target(res1_1, identity(states0_1)) # Using identity() instead of get_addresses()
) And that error is with
What errors, exactly? Can you narrow it down with a reprex? |
Beta Was this translation helpful? Give feedback.
-
I sometimes get this kind of error if I've left debugging code in the .R file for one of my functions. Do you maybe have an uncommented |
Beta Was this translation helpful? Give feedback.
Ah, I missed that you tried
tar_make(res1_1)
. That actually does allow me to reproduce the error you described. But then the error went away after I downloaded all non-base dependency packages from the day version 1.3.2 was released:If you revert those packages in the same way, it may fix the error on your end too.
In general, I recommend using
renv
, Docker, orrix
to lock packages at their current versions for the entirety of the project. I thinkrenv
is the e…