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

separate download step from install step in renv::restore? #1965

Closed
natlownes opened this issue Aug 7, 2024 · 2 comments · Fixed by #1968
Closed

separate download step from install step in renv::restore? #1965

natlownes opened this issue Aug 7, 2024 · 2 comments · Fixed by #1968

Comments

@natlownes
Copy link

Hi

I was wondering if it's possible to separate the download step from the install step? The use case is I'm trying to create an image of a large and fussy R project. It would be cool to cache the result of "downloading 40% of the R packages ever created in the course of human history" step before trying to build them

Thanks for all you do

@kevinushey
Copy link
Collaborator

Thanks! I've implemented this in the development version of renv; you should now be able to use something like:

renv::retrieve()
renv::restore()

and the renv::restore() step will use the packages downloaded in the first retrieve() step.

@natlownes
Copy link
Author

wow thank you so much this is incredible. if I run into any issues I'll open a PR. really appreciate this

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

Successfully merging a pull request may close this issue.

2 participants