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

Create a mechanism for easily "correcting" a package installation #1811

Closed
colearendt opened this issue Feb 2, 2024 · 0 comments
Closed
Labels
feature a feature request or enhancement install 🧺
Milestone

Comments

@colearendt
Copy link

Before restore() is complete, I often run into issues with environment restoration on new computers.

The easiest resolution is often to install a new version of troublesome packages, or install them from a new location (i.e. RSPM instead of GitHub, etc.).

However, then it is tricky to update the renv.lock file so that the "successful" package installation is used (and not discarded on the next restore()).

The natural way a user might want to do this is as an argument to install, e.g. an argument lock=TRUE to suggest that the install should immediately be written to the lockfile (with any upgraded / installed dependencies).

renv::install("package", lock=TRUE)

This is possible today:

renv::snapshot(packages="package", update=TRUE)

However, it uses the snapshot() verb, which is counter-intuitive, because I am thinking about correcting an install / the lockfile, not creating a new lockfile.

@kevinushey kevinushey added feature a feature request or enhancement install 🧺 labels Feb 20, 2024
@kevinushey kevinushey added this to the 1.1.0 milestone Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement install 🧺
Projects
None yet
Development

No branches or pull requests

2 participants