Show memory usage of saved objects.
Arguments
- pos
Which environment to use to list the saved objects (as a position in the search list). See
ls.- pattern
An optional regular expression. See
ls.- x
An object of class
memUse.- sort
Whether to sort the object list by
sizeoralphabeticalorder.- decreasing
Logical. Should the sort order be increasing or decreasing?
- n
A single integer, giving the number of objects to display.
- bytes
Logical. Whether to display the raw size in bytes.
- ...
Further arguments passed to or from other methods.
Value
A data frame of classe memUse providing object names, class
and memory usage; or 0 if no object is present in the specified
environment.
Original URL
https://stackoverflow.com/a/9839949. See also the complete Stack Overflow thread: https://stackoverflow.com/questions/1358003/tricks-to-manage-the-available-memory-in-an-r-session