registerDoMC {doMC}R Documentation

registerDoMC

Description

The registerDoMC function is used to register the multicore parallel backend with the foreach package.

Usage

registerDoMC(cores=NULL)

Arguments

cores The number of cores to use for parallel execution. If not specified, the number of cores is set to the value of options("cores"), if specified, or to the number of cores detected by the multicore package.

Details

The multicore package by Simon Urbanek provides functions for parallel execution of R code on machines with multiple cores or processors, using the system fork call to spawn copies of the current process. The multicore package, and therefore registerDoMC, should not be used in a GUI environment, because multiple processes then share the same GUI.


[Package doMC version 1.1.1 Index]