workspaceSize <- function(){
size <- 0
for (x in ls(envir=.GlobalEnv) ){
thisSize <- object.size(get(x))
size <- size + thisSize
message(x, " = ", appendLF = F); print(thisSize, units='auto')
}
message("total workspace is ",appendLF = F); print(size, units='auto')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.