TL;DR
I recently switched from apt
to rig
to manage my R installations. rig
is great but, as with any new tech there’s a learning curve.
What is rig
Why is rig
helpful [on Linux]
How to migrate a project from apt
R to rig
R when using renv
Steps in case this helps anyone in the future.
- Create a copy of the lock file
renv::deactivate(clean=TRUE)
- this will delete renv infra and artifacts- Put the copy of the lock file back
- Select the new rig R interpreter:
rig switch
… renv::init()
- Select the renv appropriate options based on project needs
R-4.4.3 -s -q -f main.R --args --tests
and rig run -r 4.4.3 -f main.R -- --tests
both work