objSize.simList | R Documentation |
simList
Recursively, runs reproducible::objSize()
on the simList
environment,
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 simList
, e.g.,
objSize(completed(sim))
.
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 class 'simList'
objSize(x, quick = TRUE, ...)
x |
An object |
quick |
Logical. If |
... |
Additional arguments (currently unused), enables backwards compatible use. |
an estimate of the size of the object, in bytes.
a <- simInit(objects = list(d = 1:10, b = 2:20))
objSize(a)
utils::object.size(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.