winget install --id=Posit.rig -e
Install, remove, configure R versions.
Rig is an R Installation Manager designed to simplify the management of multiple R versions across macOS, Windows, and Linux. It enables users to install, remove, and configure different R versions efficiently. Key features include support for symbolic version names like 'devel' or 'release,' configuration of CRAN mirrors and package repositories, integration with popular IDEs like RStudio, auto-completion in shells, and a macOS menu bar app for easy access to default R versions. Ideal for developers and data scientists, Rig streamlines R environment management, ensuring consistent workflows across teams. It can be installed via winget on Windows.
Install, remove, configure R versions.
devel
, next
,
release
, oldrel
, etc.R-4.1
or R-4.1.2
starts R 4.1.x. Quick links are automatically
added to the user’s path.zsh
and bash
, on macOS and Linux.lldb
, and to allow
core dumps, on macOS.If you use Scoop, you can install rig from the
scoop bucket at
cderv/r-bucket
:
scoop bucket add r-bucket https://github.com/cderv/r-bucket.git
scoop install rig
To update run
scoop update rig
If you use Chocolatey (e.g. on GitHub
Actions) you can install rig
with
choco install rig
and upgrade to the latest version with
choco upgrade rig
Retired Linux distributions
These are not updated any more, no new R builds are added for them, but existing R builds still work.
We also have other containers with rig and either R-devel and R-release preinstalled, on various Linux distros. Here is a table of all containers:
Name | OS | R version | Tags |
---|---|---|---|
ghcr.io/r-lib/rig/ubuntu-24.04-multi | Ubuntu 24.04 | last 6 (daily) | r , rig , multi , ubuntu-multi |
ghcr.io/r-lib/rig/ubuntu-24.04-release | Ubuntu 24.04 | release | ubuntu-24.04 |
ghcr.io/r-lib/rig/ubuntu-24.04-devel | Ubuntu 24.04 | devel (daily) | |
ghcr.io/r-lib/rig/ubuntu-22.04-release | Ubuntu 22.04 | release | release , ubuntu , ubuntu-release , ubuntu-latest , ubuntu-latest-release , ubuntu-22.04 |
ghcr.io/r-lib/rig/ubuntu-22.04-devel | Ubuntu 22.04 | devel (daily) | devel , ubuntu-devel , ubuntu-latest-devel |
ghcr.io/r-lib/rig/ubuntu-20.04-release | Ubuntu 20.04 | release | ubuntu-20.04 |
ghcr.io/r-lib/rig/ubuntu-20.04-devel | Ubuntu 20.04 | devel (daily) | |
ghcr.io/r-lib/rig/debian-12-release | Debian 12 | release | debian , debian-release , debian-latest , debian-latest-release , debian-12 |
ghcr.io/r-lib/rig/debian-12-devel | Debian 12 | devel (daily) | debian-devel , debian-latest-devel |
ghcr.io/r-lib/rig/debian-11-release | Debian 11 | release | debian-11 |
ghcr.io/r-lib/rig/debian-11-devel | Debian 11 | devel (daily) | |
ghcr.io/r-lib/rig/fedora-40-release | Fedora 40 | release | fedora , fedora-release , fedora-latest , fedora-latest-release , fedora-40 |
ghcr.io/r-lib/rig/fedora-40-devel | Fedora 40 | devel | fedora-devel , fedora-latest-devel |
ghcr.io/r-lib/rig/fedora-39-release | Fedora 39 | release | fedora-39 |
ghcr.io/r-lib/rig/fedora-39-devel | Fedora 39 | devel | |
ghcr.io/r-lib/rig/opensuse-15.6-release | OpenSUSE Leap 15.6 | release | opensuse , opensuse-release , opensuse-latest , opensuse-latest-release , opensuse-15.6 |
ghcr.io/r-lib/rig/opensuse-15.6-devel | OpenSUSE Leap 15.6 | devel (daily) | opensuse-devel , opensuse-latest-devel |
For convenience, we also create these tags:
Tag | Image | Description |
---|---|---|
ghcr.io/r-lib/rig/r | ubuntu-24.04-multi | Last 6 R versions on latest Ubuntu. |
ghcr.io/r-lib/rig/rig | ” | ” |
ghcr.io/r-lib/rig/multi | ” | ” |
ghcr.io/r-lib/rig/ubuntu-multi | ” | ” |
ghcr.io/r-lib/rig/release | ubuntu-24.04-release | Latest R release. |
ghcr.io/r-lib/rig/ubuntu | ubuntu-24.04-release | Latest R release on latest Ubuntu. |
ghcr.io/r-lib/rig/ubuntu-24.04 | ubuntu-24.04-release | Latest R release on Ubuntu 24.04. |
ghcr.io/r-lib/rig/devel | ubuntu-24.04-devel | R devel. |
ghcr.io/r-lib/rig/ubuntu-devel | ubuntu-24.04-devel | R devel on latest Ubuntu. |
ghcr.io/r-lib/rig/ubuntu-22.04 | ubuntu-24.04-release | Latest R release on Ubuntu 22.04. |
ghcr.io/r-lib/rig/ubuntu-20.04 | ubuntu-20.04-release | Latest R release on Ubuntu 20.04. |
ghcr.io/r-lib/rig/debian | debian-12-release | Latest R release on latest Debian. |
ghcr.io/r-lib/rig/debian-12 | debian-12-release | Latest R release on Debian 12. |
ghcr.io/r-lib/rig/debian-devel | debian-12-devel | R devel on latest Debian. |
ghcr.io/r-lib/rig/debian-11 | debian-11-release | Latest R release on Debian 11. |
ghcr.io/r-lib/rig/fedora | fedora-41-release | Latest R release on latest Fedora. |
ghcr.io/r-lib/rig/fedora-41 | fedora-41-release | Latest R release on Fedora 41. |
ghcr.io/r-lib/rig/fedora-devel | fedora-41-devel | R devel on latest Fedora. |
ghcr.io/r-lib/rig/fedora-40 | fedora-40-release | Latest R release on Fedora 40. |
ghcr.io/r-lib/rig/opensuse | opensuse-15.6-release | Latest R release on latest OpenSUSE. |
ghcr.io/r-lib/rig/opensuse-15.6 | opensuse-15.6-release | Latest R release on OpenSUSE 15.6. |
ghcr.io/r-lib/rig/opensuse-devel | opensuse-15.6-devel | R devel on latest OpenSUSE. |
See all container images on GitHub.
For all containers:
> P3M (Posit Public Package
> Manager) is generally
> superior to a regular CRAN mirror on Windows and many Linux systems.
>
> On Linux it includes binary packages for many popular distributions.
>
> On Windows, it includes up to date binary packages for older R
> versions as well.
>
> To avoid P3M use the --without-p3m
option (or the legacy
> --without-rspm
) option of rig add
.
Can rig install R without admin permissions
> No, currently it cannot.
How is rig different from RSwitch?
> While there is a small overlap in functionality, rig and > RSwitch are very different. I suggest you > look over the features of both to decide which one suits your needs > better. > > If you like rig and also like the extra features of RSwitch, then you > can use them together just fine: changing the default R version in > RSwitch also changes it in rig and vice versa. You can use the rig cli > and the RSwitch app together, or you can also use both menu bar apps > at the same time.
Which domains does rig download files from?
> Here is the list of domains that you need to enable in your proxy.
> Note that some of these, in particular the GitHub ones, might trigger
> redirects.
>
> - for resolving R versions, i.e. this
> is needed for rig install
, rig available
, etc.
> - rig install
downloads pak from
> unless requested otherwise.
> - rig install
sets as the default CRAN
> mirror, unless requested otherwise.
> - rig install
sets as the Posit
> Package Manager CRAN mirror on supported Linux systems, unless
> requested otherwise.
> - rig install
downloads the EPEL package from
> on RHEL systems.
> - rig system rtools
downloads Rtools from the following URLs on
> Windows:
> - ,
> - ,
> - ,
> -
> - ,
> and
> whatever domains Homebrew is using, to download system packages for
> rig sysreqs
on macOS.