Skip to contents

Return system random access memory (RAM) information

Usage

ram(type = c("total", "free"), units = "GB", digits = 0L)

Arguments

type

character(1). Type of RAM to return, either "total" or "free".

units

character(1). Size format.

digits

integer(1). Number of significant digits to include.

Value

numeric(1).

Details

Requires the memuse package to be installed.

Note

Updated 2023-11-10.

See also

Examples

ram(type = "total", units = "GB")
#> [1] 16
ram(type = "free", units = "GB")
#> [1] 2