One of "focal", "bionic", "xenial", "centos7",
or "centos8". See available distributions
at https://hub.docker.com/r/rstudio/r-base/.
FROM
Docker image to start FROM Default is
FROM rocker/r-base
AS
The AS of the Dockerfile. Default it NULL.
sysreqs
boolean. If `TRUE`, the Dockerfile
will contain sysreq installation.
repos
character. The URL(s) of the repositories to use for `options("repos")`.
expand
boolean. If `TRUE` each system requirement will have its own `RUN` line.
extra_sysreqs
character vector. Extra debian system requirements.
Will be installed with apt-get install.
Details
System requirements for packages are provided
through RStudio Package Manager via the pak
package. The install commands provided from pak
are added as `RUN` directives within the `Dockerfile`.
The R version is taken from the `renv.lock` file.
Packages are installed using `renv::restore()` which ensures
that the proper package version and source is used when installed.