Manage R installations, packages and projects
See the codeInstall, remove, configure R versions. Manage R packages and projects.
Multiple R versions, side by side
release, devel, next,
oldrel, or by exact version.R-4.5 or
R-4.5.1 starts the matching R. Quick links are added to your path
automatically.Cross-platform and self-contained
sudo or administrator rights.Package management, set up for you
rig repos manages package repositories across
all your R versions. Add your own CRAN-like repositories, e.g. an
internal CRAN mirror or an r-universe, and turn repositories on and
off for each R version. rig remembers the setup.rig pkg (experimental) installs, removes and lists
packages in a library, and looks up package info, dependencies and
dependency trees from the repositories, all without running R. It also
searches CRAN, and finds problems in a library, e.g. missing or too
old dependencies.rig pkg install 'cli@=3.6.4'.rig pkg, rig proj and rig run install the system
requirements of R packages, or print the commands to install them if
rig cannot run them as root.Project dependency management (experimental)
rig proj manages an R project through an
rproj.toml manifest: add or remove dependencies, resolve them with
rig’s built-in solver into an rproj.lock lockfile, and sync a
project library to match, all without running R.--exclude-newer, and upgrade only some packages while keeping
the rest pinned.DESCRIPTION file or an
renv renv.lock file, to
interoperate with existing R package and project tooling.Run R, scripts and apps
rig run starts R, runs a script or expression, or launches an app:
Shiny apps, Plumber APIs, Quarto and R Markdown documents, and static
sites, with the R version you choose.# /// script comment block, and
rig run installs them into the script’s own environment. Lock the
versions next to the script with rig proj lock --script.rig system script-assoc lets you run .R files directly
from cmd and PowerShell.Platform niceties
zsh and bash on macOS and Linux, and for
PowerShell on Windows.lldb and enables core dumps.rig list, rig add and
rig rtools add, and a rig config command to manage rig’s own
configuration.Full documentation is on the rig website: https://r-lib.github.io/rig/
Quick start:
rig add release # install the latest R release
rig list # list installed R versions
rig default 4.5.1 # set the default R version
Please open an issue in our issue tracker at https://github.com/r-lib/rig/issues
Free code signing on
Windows provided by SignPath.io, certificate by
SignPath Foundation
MIT 2021-2026 © Posit Software, PBC.
6,962 followers · starred Jan 2026
407 followers · starred Feb 2023
1,886 followers · starred Oct 2026
731 followers · starred Jun 2022
Manage R installations, packages and projects
See the codeInstall, remove, configure R versions. Manage R packages and projects.
Multiple R versions, side by side
release, devel, next,
oldrel, or by exact version.R-4.5 or
R-4.5.1 starts the matching R. Quick links are added to your path
automatically.Cross-platform and self-contained
sudo or administrator rights.Package management, set up for you
rig repos manages package repositories across
all your R versions. Add your own CRAN-like repositories, e.g. an
internal CRAN mirror or an r-universe, and turn repositories on and
off for each R version. rig remembers the setup.rig pkg (experimental) installs, removes and lists
packages in a library, and looks up package info, dependencies and
dependency trees from the repositories, all without running R. It also
searches CRAN, and finds problems in a library, e.g. missing or too
old dependencies.rig pkg install 'cli@=3.6.4'.rig pkg, rig proj and rig run install the system
requirements of R packages, or print the commands to install them if
rig cannot run them as root.Project dependency management (experimental)
rig proj manages an R project through an
rproj.toml manifest: add or remove dependencies, resolve them with
rig’s built-in solver into an rproj.lock lockfile, and sync a
project library to match, all without running R.--exclude-newer, and upgrade only some packages while keeping
the rest pinned.DESCRIPTION file or an
renv renv.lock file, to
interoperate with existing R package and project tooling.Run R, scripts and apps
rig run starts R, runs a script or expression, or launches an app:
Shiny apps, Plumber APIs, Quarto and R Markdown documents, and static
sites, with the R version you choose.# /// script comment block, and
rig run installs them into the script’s own environment. Lock the
versions next to the script with rig proj lock --script.rig system script-assoc lets you run .R files directly
from cmd and PowerShell.Platform niceties
zsh and bash on macOS and Linux, and for
PowerShell on Windows.lldb and enables core dumps.rig list, rig add and
rig rtools add, and a rig config command to manage rig’s own
configuration.Full documentation is on the rig website: https://r-lib.github.io/rig/
Quick start:
rig add release # install the latest R release
rig list # list installed R versions
rig default 4.5.1 # set the default R version
Please open an issue in our issue tracker at https://github.com/r-lib/rig/issues
Free code signing on
Windows provided by SignPath.io, certificate by
SignPath Foundation
MIT 2021-2026 © Posit Software, PBC.
6,962 followers · starred Jan 2026
407 followers · starred Feb 2023
1,886 followers · starred Oct 2026
731 followers · starred Jun 2022