| clearws {rwm} | R Documentation |
Removes all functions and datasets. Also removes `.WSID` but not `.UserDirectory`, `.UserDate` and other hidden variables. The working directory is set to `.UserDirectory`.
clearws(silentQ=FALSE)
silentQ |
FALSE, display message; TRUE, no message |
Using this function is similar to quitting R and starting R again with a fresh workspace except that the R command history is kept. All non-hidden R objects are deleted as well as the hidden variables `.WSID`, `.LastSaved` and `.Describe` if they exist in the current workspace.
None
This function can not be called by another function.
A.I. McLeod
McLeod, A.I. (2008). R Workspace Management: With R Package.
## Not run:
loadws(ptest)
ls(all.names=TRUE)
clearws()
ls(all.names=TRUE)
## End(Not run)