Description Usage Arguments Details Value Note Author(s) See Also Examples
Save and restore session information, including loaded packages and attached data objects.
1 2 | save.session(file=".RSession", ...)
restore.session(file=".RSession", ...)
|
file |
Filename for the session information. |
... |
Optional arguments for |
These two functions save and restore R session information. In addition to the objects in the session, the list of currently loaded packages and the search path are (re)stored.
Open graphics devices, sinks
s, pipes, etc. will not be stored.
save.session
issues a warning to this effect if any graphics
devices are open.
No return value.
Future enhancements may allow the restoration of the size, location, and graphics settings of graphics devices.
Gregory R. Warnes greg@warnes.net
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ls(all=TRUE) # show all data objects
search() # list search path
# save the current R session to the file "RSession.Rda"
save.session("RSession.Rda")
## Not run:
# exit R without saving data
q("no")
# restart R
R
## End(Not run)
# load a saved R session from "RSession.Rda"
restore.session("RSession.Rda")
ls(all=TRUE) # show all data objects
search() # list search path
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.