Description Usage Arguments Value Note Author(s) See Also Examples
Set the current session's search path to be equal to the search path described in the sessionInfo object.
1 | restoreSearchPath(sessionInfo, envir = .GlobalEnv, clean = TRUE)
|
sessionInfo |
A sessionInfo object containing search path info |
envir |
Environment to search for non-package objects that are referenced in the sessionInfo object. |
clean |
Boolean indicating whether elements in current session's search path that are not in the sessionInfo's search path should be removed. |
This method is executed for it's side-effects, which is a modified search path.
This function is somewhat experimental and so it might not be possible to restore all search path elements.
Matthew D. Furia matt.furia@sagebase.org
https://github.com/MattNapsAlot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
## get the session info
info <- sessionSummary()
## save to a file
save(info, file = "sessionInfo.rbin")
## load the session info
load("sessionInfo.rbin")
## restore the search path
restoreSearchPath(info)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.