Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies not discovered when specified using target::tar_option_set() #698

Closed
garciamikep opened this issue Mar 25, 2021 · 3 comments
Closed

Comments

@garciamikep
Copy link

Neither renv::dependencies() nor renv::hydrate() are detecting packages specified with targets::tar_option_set(packages = ...) in a targets workflow. See here for a simple example: https://github.com/garciamikep/renv-target-issue.

This seems consistent with the renv documentation. Given that both targets and renv aim to enhance reproducibility, should automatic dependency discovery be supported for this workflow?

@kevinushey
Copy link
Collaborator

Thanks! Should now be supported in the development version of renv.

@garciamikep
Copy link
Author

Excellent, thank you for the quick turnaround! The development version is now working for me for this workflow.

@mattwarkentin
Copy link

mattwarkentin commented Apr 22, 2021

@garciamikep I'm late to the party here, but we (Will and I) had implemented targets::tar_renv() a while ago for exactly this reason - to provide native {renv} support for {targets} users by exposing these "hidden" package dependencies in a way that would be picked up by {renv}'s heuristics.

This update to {renv} is great and will work for simple cases, but there are still "hidden" package dependencies that are picked up by targets::tar_renv() that won't be detected by {renv}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants