View source: R/batchtools_multicore.R
| BatchtoolsMulticoreFutureBackend | R Documentation |
A batchtools multicore future is an asynchronous multiprocess
future that will be evaluated in a background R session.
We highly recommend using future::multisession
(sic!) futures of the future package instead of
multicore batchtools futures.
BatchtoolsMulticoreFutureBackend(
workers = availableCores(constraints = "multicore"),
fs.latency = 0,
delete = getOption("future.batchtools.delete", "on-success"),
...
)
workers |
The number of multicore processes to be
available for concurrent batchtools multicore futures.
If a single worker is requested, which is the default when only one
CPU core is available, the batchtools local backend is used instead.
It is synchronous, that is, the main R process blocks while a job is
running. To use an asynchronous batchtools multicore backend also
with a single worker, protect the number of workers using |
fs.latency |
[ |
delete |
Controls if and when the batchtools job registry folder is
deleted.
If |
... |
Additional arguments passed
to |
Batchtools multicore futures rely on the batchtools backend set
up by batchtools::makeClusterFunctionsMulticore().
The batchtools multicore backend only works on operating systems
supporting the ps command-line tool, e.g. Linux and macOS.
An object of class BatchtoolsMulticoreFuture.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.