- file
A character string giving the pathname of the file to read from.
- ...
Additional arguments to be passed directly to source
.
- context
The pathname of the directory to serve as the execution context.
This directory will be mounted to the Docker container, which
means that the script will have access to all files/directories that are
within the context directory. The context will also serve as the working
directory from which the script is executed. It is crucial to note that the
script will NOT be able to access any files/directories that are outside the
scope of the context directory. The default value is the directory that
file
is contained in.
- 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.