Description Usage Arguments Details Author(s) Examples
Quickly initializes a parallel cluster and registers it with foreach.
1 | sfQuickInit(cpus, methods = FALSE, ...)
|
cpus |
Number of cpus. Will default to the max available cpus. |
methods |
Logical. Load the methods package? (if FALSE, faster startup). Default=FALSE. |
... |
parameters to pass to sfInit() |
(Even more) quickly start a parallel cluster with half of available cpus, parallel = TRUE, and type = "SOCK" and registers it with foreach.
Jonathan A. Greenberg
1 2 | sfQuickInit(cpus=2)
sfQuickStop()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.