sfQuickInit {spatial.tools} | R Documentation |
Quickly initializes a parallel cluster and registers it with foreach.
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
sfQuickInit(cpus=2) sfQuickStop()