This is a generic definition that can be extended according to class.
.objSizeInclEnviros(object)# S4 method for ANY
.objSizeInclEnviros(object)
# S4 method for environment
.objSizeInclEnviros(object)
Any R object.
A numeric, the result of object.size for all objects in environments.
# NOT RUN {
a <- new.env()
a$b <- 1:10
object.size(a)
.objSizeInclEnviros(a) # much larger
# }
Run the code above in your browser using DataLab