RSurvey (version 0.9.3)

RestoreSession: Restore R Session from Source Files

Description

This function restores local objects within the current R session.

Usage

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.

See Also

list.files, source

Examples

Run this code
# NOT RUN {
  RestoreSession()
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace