View source: R/parallelCheck.R
parallelCheck | R Documentation |
Check availability of parallel package and set parameters
parallelCheck(parallel, max.ncores = 16, ncores = NULL)
parallel |
Logical, should parallel execution be used? |
ncores |
number of cores used in parallel computation, self-selected number of cores
is used when |
maxcores |
upper bound for self-selected number of cores |
The function checks if package parallel is available. Then, it is checked whether the FORK nodes can be initialized
A list with two elements:
hasparallel
, a logical flag indicating if parallelization is enabled and
cl
: parallel socket cluster object, or NULL.
J. Bedia, with contributions by J. Bhend and M. de Felice
Other parallel.helpers:
selectPar.pplyFun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.