setParallel: Set number of parallel threads

Description Usage Arguments Value Examples

View source: R/multinom.R

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

1

Arguments

C

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

Value

NULL, returned silently.

Examples

1
2
3
4
## Not run: 
setParallel() # Use all available logical cores.

## End(Not run)

microclass documentation built on Aug. 28, 2020, 5:08 p.m.