mem_stash.Rd
Objects contained in a stash are never recorded by
mem_snapshot()
. Note that objects only bound inside the global
environments are normally excluded from snapshots. However, if you
take a snapshot of the precious list (see ?roots
),
global objects are reachable through the global cache. In this case
you can hide them with mem_stash()
.
mem_stash(...)
Named objects to stash.
An environment containing the stashed objects. You can add objects to this environment in the usual fashion.
# Supply named objects to stash
stash <- mem_stash(x = 1:3)
# Access the stash like a regular environment
stash$x
#> [1] 1 2 3