Create a Dockerfile from a DESCRIPTION
dock_from_desc(
path = "DESCRIPTION",
FROM = paste0("rocker/r-ver:", R.Version()$major, ".", R.Version()$minor),
AS = NULL,
sysreqs = TRUE,
repos = c(CRAN = "https://cran.rstudio.com/"),
expand = FALSE,
update_tar_gz = TRUE,
build_from_source = TRUE,
extra_sysreqs = NULL
)
Dockerfile
path to the DESCRIPTION file to use as an input.
The FROM of the Dockerfile. Default is
FROM rocker/r-ver:R.Version()$major
.R.Version()$minor
.
The AS of the Dockerfile. Default it NULL.
boolean. If TRUE, the Dockerfile will contain sysreq installation.
character. The URL(s) of the repositories to use for options("repos")
.
boolean. If TRUE
each system requirement will have its own RUN
line.
boolean. If TRUE
and build_from_source
is also TRUE
,
an updated tar.gz is created.
boolean. If TRUE
no tar.gz is created and
the Dockerfile directly mount the source folder.
character vector. Extra debian system requirements. Will be installed with apt-get install.