resave: Resave

View source: R/utils_filesave.R

resaveR Documentation

Resave

Description

Add objects to existing Rdata file

Usage

resave(
  ...,
  list = character(),
  file = stop("'file' must be specified"),
  compress = "xz",
  ascii = FALSE,
  version = NULL,
  envir = parent.frame(),
  eval.promises = TRUE,
  precheck = TRUE
)

Arguments

...

the names of the objects to be saved (as symbols or character strings).

list

A character vector containing the names of objects to be saved.

file

a (writable binary-mode) connection or the name of the file where the data will be saved (when tilde expansion is done). Must be a file name for save.image or version = 1.

compress

logical or character string specifying whether saving to a named file is to use compression. TRUE corresponds to gzip compression, and character strings "gzip", "bzip2" or "xz" specify the type of compression. Ignored when file is a connection and for workspace format version 1.

ascii

if TRUE, an ASCII representation of the data is written. The default value of ascii is FALSE which leads to a binary file being written. If NA and version >= 2, a different ASCII representation is used which writes double/complex numbers as binary fractions.

version

the workspace format version to use. NULL specifies the current default format (3). Version 1 was the default from R 0.99.0 to R 1.3.1 and version 2 from R 1.4.0 to 3.5.0. Version 3 is supported from R 3.5.0.

envir

environment to search for objects to be saved.

eval.promises

logical: should objects which are promises be forced before saving?

precheck

logical: should the existence of the objects be checked before starting to save (and in particular before opening the file/connection)? Does not apply to version 1 saves.

See Also

base::save()


adamleejohnson/R-ajtools documentation built on April 4, 2022, 7:24 a.m.