Dump | R Documentation |
Dump objects into one or separate files.
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"))
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 |
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.
NULL
, but objects are dumped to file(s) and possibly opened in pager.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.