Quickly initializes a parallel cluster and registers it with foreach.
sfQuickInit(cpus, methods = FALSE, ...)
Number of cpus. Will default to the max available cpus.
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.
# NOT RUN { sfQuickInit(cpus=2) sfQuickStop() # }
Run the code above in your browser using DataCamp Workspace