Skip to contents

Does the current machine have a sufficient RAM?

Usage

hasRam(n)

Arguments

n

integer(1). Minimum amount of RAM in gigabytes (GB).

Value

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

Note

Updated 2023-08-10.

Examples

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

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