Skip to contents

Detect the number of CPU cores

Usage

cpus()

Value

integer(1). Number of CPU cores.

Note

Updated 2023-05-16.

See also

  • parallel::detectCores

  • ps::ps_cpu_count

Examples

cpus()
#> [1] 8