- project
The project directory. If no project directory is provided,
by default, the here package will be used to determine the active
project. If no project is currently active, then here defaults to
the working directory where initially called.
- as
The file path to write to. The default value is
file.path(project, "Dockerfile").
- FROM
Docker image to start FROM. Default is FROM r-base:R.version.
- ...
Additional arguments which are passed directly to
renv::snapshot. Please see the documentation for that function for all
relevant details.
- exclude
A vector of strings specifying all paths (files or
directories) that should NOT be included in the Docker image. By default,
all files in the directory will be included. NOTE: the file and directory
paths should be relative to the project directory. They do NOT need to
be absolute paths.
- verbose
A boolean indicating whether or not to print the resulting
Dockerfile to the console. Default value is FALSE.
- optimize_pak
A boolean indicating whether or not to try to optimize
package installations with pak. Defaults to TRUE. This should rarely be
changed from its default value. However, sometimes this optimization may
cause build failures. When encountering a build error, a good first step
can be to set optimize_pak = FALSE and see if the error persists.