clearws {rwm}R Documentation

Clear workspace

Description

Removes all functions and datasets. Also removes `.WSID` but not `.UserDirectory`, `.UserDate` and other hidden variables. The working directory is set to `.UserDirectory`.

Usage

clearws(silentQ=FALSE)

Arguments

silentQ FALSE, display message; TRUE, no message

Details

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.

Value

None

Warning

This function can not be called by another function.

Author(s)

A.I. McLeod

References

McLeod, A.I. (2008). R Workspace Management: With R Package.

See Also

loadws, savews,

Examples

## Not run: 
loadws(ptest)
ls(all.names=TRUE)
clearws()
ls(all.names=TRUE)
        
## End(Not run)

[Package rwm version 1.27 Index]