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

Feature Request: renv::validate() to check if current lock file is reproducible #2031

Open
gowerc opened this issue Nov 8, 2024 · 1 comment

Comments

@gowerc
Copy link

gowerc commented Nov 8, 2024

When using renv there are several ways that the user can shoot themselves in the foot and end up with an non-reproducible lock file. We most commonly see this when a user changes the repo URL to a posit-package-manager snapshot date that doesn't contain the versions of the packages that they have in their lock file or if they manually install a newer package without ensuring the repo URL is recorded.

It would be awesome to have a function that can check the state of the lockfile and throw an error if the lock file is in a broken state (e.g. unable to to find all the correct package versions). An added bonus would be if this checking process could be super light weight so that we could combine it with git hooks to check the project before a commit is made.

(Apologies if this functionality already exists and I missed it 🫣 )

@kevinushey
Copy link
Collaborator

This does not yet exist, but it does seem reasonable.

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

2 participants