util_backend(par = FALSE, ncores = NULL, backend = "doParallel", sock = TRUE)
Arguments
par |
Logical.
If TRUE , use multiple cores. |
ncores |
Integer.
Number of cores to use if par = TRUE .
If unspecified, defaults to detectCores() - 1 . |
backend |
Character string.
foreach backend.
The following are currently available:
"doParallel" , and "doMC" .
If the current operating system
is Windows,
and backend = "doMC"
backend is changed to "doParallel" . |
sock |
Logical.
If backend = "doParallel" ,
you have two parallel options.
If TRUE , uses sockets.
If FALSE , uses forking.
If the current operating system
is Windows,
sock = TRUE is enforced. |
Author
Ivan Jacob Agaloos Pesigan