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().

Usage,
mem_stash(...)

Arguments

...

Named objects to stash.

Value

An environment containing the stashed objects. You can add objects to this environment in the usual fashion.

Examples

# Supply named objects to stash
stash <- mem_stash(x = 1:3)

# Access the stash like a regular environment
stash$x
#> [1] 1 2 3