memory_hogs {fritools2} | R Documentation |
Find Memory Hogs
Description
List objects in an R environment by size.
Usage
memory_hogs(
unit = c("b", "Kb", "Mb", "Gb", "Tb", "Pb"),
return_numeric = TRUE,
...,
envir = parent.frame()
)
Arguments
unit |
The unit to use. |
return_numeric |
Return a numeric vector? If set to
|
... |
Arguments passed to |
envir |
The environment where to look for objects. |
Value
A named vector of memory usages.
See Also
Other R memory functions:
wipe_clean()
,
wipe_tempdir()
Examples
va <- rep(mtcars, 1)
vb <- rep(mtcars, 1000)
vc <- rep(mtcars, 2000)
vd <- rep(mtcars, 100)
memory_hogs()
memory_hogs(unit = "Mb", decreasing = TRUE)
memory_hogs(unit = "Mb", decreasing = TRUE, return_numeric = FALSE)
[Package fritools2 version 4.1.0 Index]