Dump: Dump Objects

View source: R/Dump.R

DumpR Documentation

Dump Objects

Description

Dump objects into one or separate files.

Usage

Dump(list = if (length(ls(1)) > 0) ls(1)[sapply(ls(1), function(x)
  is.function(get(x, 1)))] else NULL, file = paste0(dirname(tempdir()),
  "/temp.R"), envir = .GlobalEnv, pager = getOption("pager"))

Arguments

list

a vector of object names.

file

a file or directory where objects should be dumped.

envir

where to search for objects.

pager

a program to view output file, or FALSE if output file should not be opened

Details

If file does not exist and has no file extension, then a new directory is created.

If file is a directory, it should not end with a /, unless it's a drive name.

Specify envir to prevent dumping the wrong object when synonymous objects exist.

Value

NULL, but objects are dumped to file(s) and possibly opened in pager.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.