-
Notifications
You must be signed in to change notification settings - Fork 7
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
workflow/option to install packages locally #12
Comments
Actually would renv::hydrate() Just do this? |
I dont think so... I think that tries to discover your deps from your code. The subtle issue that arises is that the lockfile versions may not be compatible with your local library due to being outdated. I.e. the version may be below the min version of other dependent installed packages. With your local library, the only safe direction to move is forward to install the latest. So if you do this:
I think that will install the latest versions of packages that are behind the lockfile or not present. This would ensure you are at or in front of the lockfile versions. edit: need the $name! |
If this is what you want, happy to wrap it up in its own function. |
That would be amazing! |
Notes for myself mostly: I think this kind of thing should be what solves this: A few issues a present:
|
Have a try of Which does not infact mirror the lockfile. It makes sure all deps are at least the lockfile versions, the ones ahead are not touched. So... it's kind of like a funhouse mirror. |
Basically I would like something like
capsule::reproduce_lib()
but that installs the packages locally for interactive use outside of thecapsule::run
workflow.Perhaps the function could be called:
install_lockfile_pkgs()
or something?The text was updated successfully, but these errors were encountered: