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")
# exit R without saving data
q("no")
# restart R
R
# load a saved R session from "RSession.Rda"
restore.session("RSession.Rda")
ls(all=TRUE) # show all data objects
search() # list search path
Run the code above in your browser using DataLab