reproducible::objSize() on the
so it estimates the correct size of functions stored there (e.g., with their enclosing
environments) plus, it adds all other "normal" elements of the
The output is structured into 2 elements: the sim environment and all its objects,
and the other slots in the
simList (e.g., events, completed, modules, etc.).
The returned object also has an attribute, "total", which shows the total size.
# S3 method for simList objSize(x, quick = TRUE, ...)
FALSE, then an attribute, "objSize" will be added to
the returned value, with each of the elements' object size returned also.
Additional arguments (currently unused), enables backwards compatible use.
a <- simInit(objects = list(d = 1:10, b = 2:20)) #> Setting: #> options( #> reproducible.cachePath = '/tmp/RtmppEYNhs/myProject/cache' #> spades.inputPath = '/tmp/RtmppEYNhs/myProject/inputs' #> spades.outputPath = '/tmp/RtmppEYNhs/myProject/outputs' #> spades.modulePath = '/tmp/RtmppEYNhs/myProject/modules' #> spades.scratchPath = '/tmp/RtmppEYNhs/SpaDES/scratch' #> ) #> Using setDTthreads(1). To change: 'options(spades.DTthreads = X)'. objSize(a) #> 475.46 kB utils::object.size(a) #> 17184 bytes