evalParallelArgument {dclone} | R Documentation |
Evaluates parallel argument
Description
Evaluates parallel argument.
Usage
evalParallelArgument(cl, quit = FALSE)
Arguments
cl |
|
quit |
Logical, whether it should stop with error when ambiguous parallel definition is found (conflicting default environmental variable settings). |
Value
NULL
for sequential evaluation or
the original value of cl
if parallel
evaluation is meaningful.
Author(s)
Peter Solymos, solymos@ualberta.ca
Examples
evalParallelArgument()
evalParallelArgument(NULL)
evalParallelArgument(1)
evalParallelArgument(2)
cl <- makePSOCKcluster(2)
evalParallelArgument(cl)
stopCluster(cl)
oop <- options("mc.cores"=2)
evalParallelArgument()
options(oop)
[Package dclone version 2.3-2 Index]