Recursively, runs object\.size on the simList environment. Currently, this will not assess object.size of the other elements

# S3 method for simList
objSize(x, quick = getOption("reproducible.quick", FALSE))

Arguments

x

An object

quick

Logical. Only some methods use this. e.g., Path class objects. In which case, file.size will be used instead of object.size.

Examples

a <- simInit(objects = list(d = 1:10, b = 2:20)) objSize(a)
#> $`x@.envir$b` #> 168 bytes #> #> $`x@.envir$d` #> 88 bytes #> #> $`x@.envir` #> 264 bytes #> #> $simList #> 14296 bytes #>
object.size(a)
#> 14512 bytes