Registers a parallel backend for multi core processing. The number of cores will be detected automatically, unless specified otherwise.

registerParallelBackend(cores = NULL, logical = TRUE)

Arguments

cores

the number of cores to use for multi core processing

logical

whether to consider logical or physical cores

Examples

if (FALSE) { # detect logical cores automatically registerParallelBackend() # use four physical cores numCores <- 4 registerParallelBackend(numCores, logical = FALSE) }