Get size of all R objects in .GlobalEnv
getObjectSizes <- function() { sort( sapply(ls(envir=.GlobalEnv),function(x){object.size(get(x))})) }