Remove one or more objects from the stash.

unstash(var, single_var, verbose = NULL)

Arguments

var

The name or a vector of names of objects to remove.

single_var

Specifies a single name (key) to remove. Use this when the object was stashed using an arbitrary object as the key.

verbose

Whether to print action statements (default TRUE).

Value

Returns NULL (invisibly).

Examples

# \donttest{
stash("x", {
  x <- 1
})
#> Stashing object.

unstash("x")
#> Unstashing 'x'.

stash(list(letters, cars), { 7 }, functional = TRUE)  # styler: off
#> Stashing object.
unstash(single_var = list(letters, cars))
#> Unstashing '153fec8c97c940c7b03218c9874db452'.

#' # Remove directory for this example - do not do in real use.
unlink(".mustashe", recursive = TRUE)
# }