powered by
xObjSize is supposed to estimate memory allocated for an R variable or a file.
xObjSize
xObjSize(obj, type = c("auto", "variable", "file"), units = "auto", verbose = TRUE)
character specifying an R variable or a local file
the object type specifying an R object or a local file. It can be 'variable', 'file' or 'auto' (by default; automatically determined)
the units to be used in formatting the size. It can be 'auto', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb'
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.
# NOT RUN { xObjSize(ls()[1]) #res <- lapply(ls(), xObjSize) #res <- lapply(list.files(), xObjSize) # }
Run the code above in your browser using DataLab