Learn R Programming

microclass (version 1.2)

setParallel: Set number of parallel threads

Description

Simple function to set the number of threads to use in parallel computations. The default equals all available logical cores. An integer is interpreted as the number of threads. A numeric < 1 is interpreted as a proportion of the avialable logical cores.

Usage

setParallel(C = NULL)

Arguments

C

a scalar indicating the number of threads, default = NULL (#available logical cores)

Value

NULL, returned silently.

Examples

Run this code
# NOT RUN {
setParallel() # Use all available logical cores.
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab