ParallelParam {Streamer} | R Documentation |
Configure and register parallel calculations, e.g., for
Team
evaluation.
MulticoreParam(size = getOption("mc.cores", 2L), mc.set.seed = TRUE, ...) register(param)
size |
The number of members in the parallel cluster. |
mc.set.seed |
|
param |
A |
... |
Additional arguments, e.g., |
Use MulticoreParam
to construct instances of this class.
Invoked with an argument param
stores the
param
for use in subsequent parallel computation. Use
NULL
to clear the register. The function returns,
invisibly, the previously registered parameter instance, if any.
Internal fields of this class are are described with, e.g.,
getRefClass("MulticoreParam")$fields
.
Internal methods of this class are described with
getRefClass("MulticoreParam")$methods()
and
getRefClass("MulticoreParam")$help()
.
Martin Morgan mtmorgan@fhcrc.org
Team
to apply one function in parallel,
DAGTeam
to evaluate functions whose dependencies are
represented as directed acyclic graphs.
if (.Platform$OS.type != "windows") { oparam <- register() ## previous setting param <- MulticoreParam() ## default multicore settings register(param) ## register for future use, e.g,. Team register(oparam) ## reset original }