memory.summary | R Documentation |
Summary of RAM footprint for all R objects in the current session. Not my function, but taken from an R-Help response by Elizabeth Purdom, at Berkeley. Simply applies the function 'object.size' to the objects in ls(). Also very similar to an example in the 'Help' for the utils::object.size() function.
memory.summary(unit = c("kb", "mb", "gb", "b"))
unit |
default is to display "kb", but you can also choose "b"=bytes, "mb"= megabyte, or "gb" = gigabytes. Only the first letter is used, and is not case sensitive, so enter units how you like. |
a list of object names with memory usage in bytes
memory.summary() # shows memory used by all objects in the current session in kb memory.summary("mb") # change units to megabytes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.