Learn R Programming

PatientLevelPrediction (version 3.0.0)

registerParallelBackend: registerParallelBackend

Description

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

Usage

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

Run this code
# NOT RUN {
# detect logical cores automatically
registerParallelBackend()

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

Run the code above in your browser using DataLab