xObjSize | R Documentation |
xObjSize
is supposed to estimate memory allocated for an R
variable or a file.
xObjSize( obj, type = c("auto", "variable", "file"), units = "auto", verbose = TRUE )
obj |
character specifying an R variable or a local file |
type |
the object type specifying an R object or a local file. It can be 'variable', 'file' or 'auto' (by default; automatically determined) |
units |
the units to be used in formatting the size. It can be 'auto', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb' |
verbose |
logical to indicate whether the messages will be displayed in the screen. By default, it sets to TRUE for display |
If action is logical, a list containing arguments and their default values. If action is NULL, a string specifying the assignment to be evalated.
This function is potentially useful when debugging as it frees developers from specifying default values for all arguments except those arguments of interest
xObjSize
xObjSize(ls()[1]) #res <- lapply(ls(), xObjSize) #res <- lapply(list.files(), xObjSize)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.