Skip to contents

Best-effort, dependency-free detection (PowerShell on Windows, /proc/meminfo on Linux, sysctl / vm_stat on macOS). Mirror of omop_etl.resources.detect_system_ram in Python.

Usage

detect_system_ram()

Value

A named numeric vector c(total = <bytes>, available = <bytes>); both NA when undetectable.

Examples

detect_system_ram()
#>       total   available 
#> 16766414848 15018635264