| startParallel | R Documentation |
This function sets up parallel computing using the parallel and doParallel packages.
It supports both "snow" (PSOCK) and "multicore" backends depending on the OS.
startParallel(parallel = TRUE, ...)
parallel |
Logical, numeric, character, or a cluster object. If |
... |
Additional arguments (currently unused). |
An object of class logical with attributes:
type: cluster type ("snow" or "multicore")
cores: number of cores used
cluster: the cluster object created or passed
## Not run:
cl <- startParallel(TRUE)
stopParallel(attr(cl, "cluster"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.