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.

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.