Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ps_cpu_count

Number of logical or physical CPUs


Description

If cannot be determined, it returns NA. It also returns NA on older Windows systems, e.g. Vista or older and Windows Server 2008 or older.

Usage

ps_cpu_count(logical = TRUE)

Arguments

logical

Whether to count logical CPUs.

Value

Integer scalar.

Examples

ps_cpu_count(logical = TRUE)
ps_cpu_count(logical = FALSE)

ps

List, Query, Manipulate System Processes

v1.6.0
MIT + file LICENSE
Authors
Jay Loden [aut], Dave Daeschler [aut], Giampaolo Rodola' [aut], Gábor Csárdi [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.