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)

Arguments

object

Any R object.

Value

A numeric, the result of object.size for all objects in environments.

Examples

a <- new.env() a$b <- 1:10 object.size(a)
#> 56 bytes
.objSizeInclEnviros(a) # much larger
#> 376 bytes