- func
Function object or code block to be executed in the R session
within the Docker container. It is best to reference package functions using
the ::
notation, and only packages installed in the Docker container are
accessible.
- args
Arguments to pass to the function. Must be a list.
- image
A string in the image:tag
format specifying either a local
Docker image or an image available on DockerHub. Default image is
r-base:{jetty:::r_version()}
where your R version is determined from
your local R session.
- stdout, stderr
where output to ‘stdout’ or ‘stderr’ should be sent.
Possible values are "", to the R console (the default), NULL
(discard output), FALSE (discard output), TRUE
(capture the output silently and then discard), or a
character string naming a file. See system2
which this
function uses under the hood; however, note that system2
handles these options slightly differently.
- install_dependencies
A boolean indicating whether jetty should
discover packages used in your code and try to install them in the
Docker container prior to executing the provided function/expression.
In general, things will work better if the Docker image already has all
necessary packages installed.
- r_profile, r_environ
Paths specifying where jetty should search for
the .Rprofile and .Renviron files to transfer to the Docker sub-process.
By default jetty will look for files called ".Rprofile" and ".Renviron"
in the current working directory. If either file is found, they will be
transferred to the Docker sub-process and loaded before executing any
R commands. To explicitly exclude either file, set the value to
NULL
. Alternatively, to exclude either file for all jetty function
calls, set the JETTY_IGNORE_RPROFILE
/JETTY_IGNORE_RENVIRON
environment variable(s) to one of c(TRUE, "T")
or set the R
option(s) jetty.ignore.rprofile
/jetty.ignore.renviron
TRUE
.
- debug
A boolean indicating whether to print out the commands that are
being executed via the shell. This is mostly helpful to see what is
happening when things start to error.