save_image_filtered: Variant of 'save.image()' that allows excluding specific...

save_image_filteredR Documentation

Variant of save.image() that allows excluding specific names

Description

If you want to save your entire workspace except for a specific set of variable names that you wish to exclude, this function makes it easy to do so.

Usage

save_image_filtered(
  file = ".RData",
  version = NULL,
  ascii = FALSE,
  compress = !ascii,
  safe = TRUE,
  exclude = NULL
)

Arguments

file, version, ascii, compress, safe

These arguments have the same meaning as in save.image().

exclude

Character vector of variable names not to save.

See Also

save.image()

Examples


x <- 5
y <- 3
datafile <- tempfile(fileext = ".rda")
# Only saves y, not x
save_image_filtered(datafile, exclude = "x")


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.