SetParallel {grandR} | R Documentation |
Set the number of cores for parallel execution.
SetParallel(cores = max(1, parallel::detectCores() - 2))
cores |
number of cores |
Whenever psapply or plapply are used, they are executed in parallel.
No return value, called for side effects