detectCores
Detect the Number of CPU Cores

Description

Detects the number of CPU cores.

Usage

detectCores(all.tests = FALSE, logical = FALSE)

Arguments

all.tests a logical value. Not used.
logical a logical value. Not used.

Details

Currently, Spotfire Enterprise Runtime for R returns the number of logical processors to be compatible with open-source R, even if logical is FALSE.
Value
returns an integer value indicating the number of CPU cores, or NA if retrieving processor information is not supported on the current system.
Examples
detectCores(logical = TRUE)
detectCores()
Package parallel version 6.1.4-13
Package Index