mem_used: How much memory is currently used by R?

Description Usage Value Examples

View source: R/mem.R

Description

R breaks down memory usage into Vcells (memory used by vectors) and Ncells (memory used by everything else). However, neither this distinction nor the "gc trigger" and "max used" columns are typically important. What we're usually most interested in is the the first column: the total memory used. This function wraps around gc() to return the total amount of memory (in megabytes) currently used by R.

Usage

1

Value

Megabytes of ram used by R objects.

Examples

1

Example output

24.3 MB

pryr documentation built on Feb. 18, 2018, 9:02 a.m.