You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the bug report! The challenge with this:
pkg <- c("cowplot", "tidyverse")
tar_option_set(packages = pkg, format = "qs")
renv's dependency discovery algorithm is fairly primitive; in particular, it doesn't keep track of scopes or variable references, and so cannot figure out that pkg refers to some vector of packages.
I guessed that much. But, I'd expect it to not discover these packages and simply ignore them. Instead, it crashes with a puzzling error. It took me quite a while of poking around to isolate the bug in my code.
First minimal example. The following file is saved as
_targets.R
in the local directory.renv:init()
andrenv::depencencies()
work fine and discover required packages.However, if the above file is re-written as
then we have errors:
and
I understand that the second error was reported before, under different circumstances.
The text was updated successfully, but these errors were encountered: