Skip to contents

Does the current machine have a sufficient number of CPU cores?

Usage

hasCpu(n)

Arguments

n

integer(1). Minimum number of CPU cores.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2023-08-10.

Examples

## TRUE ====
hasCpu(n = 1L)
#> [1] TRUE

## FALSE ====
hasCpu(n = Inf)
#> [1] FALSE