RestoreSession: Restore R Session from Source Files

Description Usage Arguments Value Author(s) See Also Examples

Description

This function restores local objects within the current R session.

Usage

1
RestoreSession(path, save.objs, fun.call)

Arguments

path

character. Directory pathname; if missing a folder browser pop up dialog box is implemented.

save.objs

character. Vector of local object names. These objects will be preserved during the recompiling process.

fun.call

character. Name of the function to call after restoring the session (optional).

Value

Used for the side-effect of an updated R session compiled from source code files (‘.R’) located in path and its recursive directories.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

See Also

list.files, source

Examples

1
2
3
4
## Not run: 
  RestoreSession()

## End(Not run)

RSurvey documentation built on May 2, 2019, 3:28 p.m.