Delen via


totalSystemMemory: Obtain Total System Memory

Description

Uses operating system tools to return total system memory.

Usage

  totalSystemMemory()

Details

On Unix-alikes, checks the /proc/meminfo file for the total memory. If the system call returns an error, the function returns NA. On Windows systems, uses wmic to obtain the TotalVisibleMemorySize.

Value

A numeric value representing total system memory in kBytes, or NA.

Examples


 totalSystemMemory()