1 Quick reference
- Source repository: rocker-org/rocker-versioned2
- Dockerfile
- tags
- Published image details: rocker-org/rocker-versioned2’s wiki
- Non-root default user: not exist
2 Overview
rocker/r-ver
is alternate image to r-base
, with an emphasis on reproducibility.
Compared to r-base
,
- Builds on Ubuntu LTS rather than Debian and system libraries are tied to the Ubuntu version. Images will use the most recent LTS available at the time when the corresponding R version was released.
- Since compatibility problems are likely to occur immediately after the release of a new Ubuntu LTS, the version to be used is the one that is at least 90 days past release.
rocker/r-ver:4.0.0
is based on Ubuntu 20.04 (ubuntu:focal
) because no interval was set at the time of the Ubuntu 20.04 release.
- Since compatibility problems are likely to occur immediately after the release of a new Ubuntu LTS, the version to be used is the one that is at least 90 days past release.
- Installs a fixed version of R itself from source, rather than whatever is already packaged for Ubuntu (the
r-base
stack gets the latest R version as a binary from Debian unstable). - The only platforms available are
linux/amd64
andlinux/arm64
(arm64 images are experimental and only available forrocker/r-ver
4.1.0 or later). - Set the RStudio Public Package Manager (RSPM) as default CRAN mirror. For the amd64 platform, RSPM serves compiled Linux binaries of R packages and greatly speeds up package installs.
- Non-latest R version images installs all R packages from a fixed snapshot of CRAN mirror at a given date. This setting ensures that the same version of the R package is installed no matter when the installation is performed.
- Provides images that are generally smaller than the
r-base
series.
Note
This document is for R 4.0.0 >= images. Please check the rocker-org/rocker-versioned repository for R <= 3.6.3 images.