ezThreads: Determines the number of CPU cores to be used

View source: R/system.R

ezThreadsR Documentation

Determines the number of CPU cores to be used

Description

The function will try to find the amount of CPU cores on the current host or how many should be used. First, it will try getOption("cores"), then Sys.getenv("NSLOTS") and lastly detectCores(logical=TRUE).

Usage

ezThreads()

Value

Returns an integer specifying the amount of CPU cores R is using.

Author(s)

Rehrauer, Hubert

Schmid, Peter

See Also

detectCores

Examples

ezThreads()

uzh/ezRun documentation built on April 19, 2024, 8:25 a.m.