View source: R/Misc_Exported.R
setup | R Documentation |
Sets up parallel processing using the snowfall package
setup(cpus = NULL, logical = FALSE, ...)
cpus |
the number of CPUs to use for parallel processing. If left empty
all physical cores will be used, unless |
logical |
Use the logical cores as well? Using the virtual cores may
not lead to any significant decrease in run time.
You can test the optimal number of cores using |
... |
other arguments passed to 'snowfall::sfInit' |
## Not run:
setup() # set-up the physical processors
setup(6) # set-up 6 processors
setup(logical=TRUE) # set-up physical and logical cores
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.