The doMC package provides a parallel backend for the foreach/%dopar% function using the multicore functionality of the parallel package.
Further information is available in the following help topics:
||register doMC to be used by foreach/%dopar%|
To see a demo of doMC computing the sinc function, use
Some examples (in addition to those in the help pages) are included in the “examples” directory of the doMC package. To list the files in the examples directory, use
list.files(system.file("examples", package="doMC")). To run the bootstrap example, use
source(system.file("examples", "bootMC.R", package="doMC")). This is a simple benchmark, executing both sequentally and in parallel. There are many more examples that come with the foreach package, which will work with the doMC package if it is registered as the parallel backend.
Documentation reproduced from package doMC, version 1.3.2. License: GPL-2