saveSession: Save an R Session

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function saves all objects in stored in the global workspace, and also saves the session info object that describes other information about the session. It is a thin wrapper on the save method.

Usage

1
saveSession(..., list = character(), file="session.RData", version = NULL, envir = .GlobalEnv)

Arguments

list

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

...

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

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 version = 1.

version

the workspace format version to use. NULL specifies the current default format. The version used from R 0.99.0 to R 1.3.1 was version 1. The default format as from R 1.4.0 is version 2.

envir

environment to search for objects to be saved.

Details

This function is a thin wrapper on top of save.image(). The only difference being that the sessionInfo object is first stored in the global environment as an object named .sessionInfo.

Value

This method is called for it's side-effects, which is a file storing the current session.

Author(s)

Matthew D. Furia matt.furia@sagebase.org

https://github.com/MattNapsAlot

See Also

restoreSession, sessionSummary, save

Examples

1
2
3
4
5
## Not run: 
## save the session for later use
saveSession(file="sessionInfo.rbin")

## End(Not run)

Sage-Bionetworks/sessionTools documentation built on May 9, 2019, 12:13 p.m.