[R] what's the command in R to completely clear the state of the console(including clearing up libraries, etc?)

David Winsemius dwinsemius at comcast.net
Sun Jan 1 18:58:39 CET 2012


On Jan 1, 2012, at 12:43 PM, Michael wrote:

> Are there commands that can do more complete clean-up than
> "rm(list=ls(all=T))"?
>
> My understanding is that one only clears the variables... not
> functions/packages, etc...

Not exactly true. rm should remove any function you defined in your  
current session. You need to look at

?unloadNamespace
?detach

...  in order to remove loaded packages.


> Thanks a lot!
>
> 	[[alternative HTML version deleted]]

#--- just in case you were having difficulty finding it----#
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list