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

Could renv::restore() error early if R versions recorded and used are different? #2087

Open
etiennebacher opened this issue Feb 4, 2025 · 0 comments

Comments

@etiennebacher
Copy link

I was trying to reproduce a project on a coauthor's laptop when we had an error about Matrix installation. It was not obvious that the problem only was that the R version recorded in renv.lock and the R version used were different. Running renv::status() would have informed us of this discrepancy, but I think renv::restore() could also be noisier about it, and even maybe error early in this case.

The usecase I have in mind for this is sharing a project that one can run without being very familiar with R or renv, basically "run this script to restore the project and run everything from data processing to results". Usually (in my field at least), software requirements are stored in a README. Supposing someone doesn't pay attention to the R version they're using, having an early error like "Couldn't restore the R project: R version stored is x.x.x and R version currently installed is y.y.y" would be helpful.

What do you think about adding a strict parameter (or similar) to error early if there's this kind of discrepancy?

Might be related to #2056

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

1 participant