Learn R Programming

nat.utils (version 0.6.1)

ncpus: Return number of cpus (or a default on failure)

Description

Return number of cpus (or a default on failure)

Usage

ncpus(default = 1L)

Value

Integer number of cores

integer number of cores always >=1 for default values

Arguments

default

Number of cores to assume if detectCores fails

Author

jefferis

See Also

detectCores

Examples

Run this code
ncpus()

Run the code above in your browser using DataLab