Return number of cpus (or a default on failure)

ncpus(default = 1L)

Arguments

default

Number of cores to assume if detectCores fails

Value

Integer number of cores

integer number of cores always >=1 for default values

See also

detectCores

Author

jefferis

Examples

ncpus()
#> [1] 3