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@.xData$b` #> 176 bytes #> #> $`x@.xData$d` #> 96 bytes #> #> $`x@.xData$.userSuppliedObjNames` #> 176 bytes #> #> $`x@.xData` #> 280 bytes #> #> $simList #> 15848 bytes #>
object.size(a)
#> 16312 bytes