rig Tips & Tricks

A guide of helpful commands

R
rig
Linux
Author

Santiago Rodriguez

Published

June 18, 2025

Modified

June 18, 2025

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.

  1. Create a copy of the lock file
  2. renv::deactivate(clean=TRUE) - this will delete renv infra and artifacts
  3. Put the copy of the lock file back
  4. Select the new rig R interpreter: rig switch
  5. renv::init()
  6. 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