Calculate the sizes of all of the objects in one's workspace.
objectsizes(obj = NULL, sortbysize = TRUE)
Vector of object names. If missing, we pull out all object names.
If TRUE, sort the objects from smallest to largest.
utils::object.size() repeated to get the size of a
list of objects.
A data frame with the only column being the size of each object in megabytes (Mb). The row names are the names of the objects.
print(output <- objectsizes()) ## Not run: sum(output)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.