system_cpu_core_count: Function to return the system's number of CPU cores.

View source: R/system_cpu_core_count.R

system_cpu_core_countR Documentation

Function to return the system's number of CPU cores.

Description

Function to return the system's number of CPU cores.

Usage

system_cpu_core_count(logical_cores = TRUE, max_cores = NA)

Arguments

logical_cores

Should logical cores be included in the core count?

max_cores

Should the return have a maximum value? This can be useful when there are very many cores and logic is being built.

Value

Integer vector with length of 1.

Author(s)

Stuart K. Grange

Examples


# Find core count
system_cpu_core_count()


skgrange/systemr documentation built on April 18, 2024, 2:23 a.m.