Below are the R options and environment variables that are used by the
See future::future.options for additional ones that apply to futures
WARNING: Note that the names and the default values of these options may change in future versions of the package. Please use with care until further notice.
(a positive numeric or
The default number of workers available on HPC schedulers with
job queues. (Default:
If TRUE, batchtools will produce extra output.
If FALSE, such output will be disabled by setting batchtools
options batchtools.verbose and batchtools.progress
(a positive numeric)
When a batchtools job expires, the last few lines will be
relayed by batchtools futures to help troubleshooting.
This option controls how many lines are displayed.
An absolute or relative path specifying the root folder in which
batchtools registry folders are stored.
This folder needs to be accessible from all hosts ("workers").
Specifically, it must not be a folder that is only local to the
machine such as
file.path(tempdir(), ".future" if an job scheduler
on a HPC environment is used.
.future in the current working directory)
(logical) Controls whether or not the future's batchtools registry folder is deleted after the future result has been collected. If TRUE, it is always deleted. If FALSE, it is never deleted. If not set or NULL, the it is deleted, unless running in non-interactive mode and the batchtools job failed or expired, which helps to troubleshoot when running in batch mode. (Default: NULL (not set))
All of the above R future.batchtools.* options can be set by
corresponding environment variable
the future.batchtools package is loaded. This means that those
environment variables must be set before the future.batchtools
package is loaded in order to have an effect.
For example, if
R_FUTURE_BATCHTOOLS_WORKERS="200" is set, then option
future.batchtools.workers is set to
# Set an R option: options(future.cache.path = "/cluster-wide/folder/.future")