availableMemory: Report the estimated amount of available memory in the OS

View source: R/memory.R

availableMemoryR Documentation

Report the estimated amount of available memory in the OS

Description

This reports the 'available' memory from a system call: free on Linux, vm_stat on macOS, or wmic on Windows. If neither is installed on the system, returns NULL.

Usage

availableMemory()

Value

Numeric of class "object_size", so it can be reported in any units with format, e.g., format(availableMemory(), unit = "GB").

See Also

man free for description of available memory estimation.


PredictiveEcology/pemisc documentation built on Sept. 19, 2022, 7 p.m.