What tricks do people use to manage the available memory of an interactive R session? I use the functions below [based on postings by Petr Pikal and David Hinds to the r-he
This is a newer answer to this excellent old question. From Hadley's Advanced R:
install.packages("pryr") library(pryr) object_size(1:10) ## 88 B object_size(mean) ## 832 B object_size(mtcars) ## 6.74 kB
(http://adv-r.had.co.nz/memory.html)