Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ls.objects

List largest objects and show memory use


Description

List object and memory used by these objects

Usage

ls.objects(pos = 1, pattern, order.by, decreasing = FALSE, head = FALSE,
  n = 5)

lsos(..., n = 10)

showMemoryUse(sort = "size", decreasing = FALSE, limit)

Arguments

pos

Position in search path, defaults to 1

pattern

Pattern argument pass on to ls

order.by

Optional sort order column

decreasing

Optional switch for decreasing or increasing sort order

head

Optional switch to show head(..., n)

n

Number of elements to show, default to 5

...

Passed through from lsos to ls.objects

sort

Sort columns, defauls to ‘size’

limit

Optional cap on displayed number of items

Details

These helper functions have evolved over the years; some were also posted on StackOverflow in response to https://stackoverflow.com/questions/1358003/tricks-to-manage-the-available-memory-in-an-r-session

Value

The displayed data.frame is returned to, the main purpose effect however is the displayed information

Author(s)

Dirk Eddelbuettel, based on and extending code in mailing list posts by Petr Pikal and David Hinds


dang

'Dang' Associated New Goodies

v0.0.13
GPL (>= 2)
Authors
Dirk Eddelbuettel with contributions by Brodie Gaslam, Kevin Denny, Kabira Namit, Colin Gillespie, R Core, Josh Ulrich, and others.
Initial release
2021-02-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.