Michael
2012-Jan-01 17:43 UTC
[R] what's the command in R to completely clear the state of the console(including clearing up libraries, etc?)
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... Thanks a lot! [[alternative HTML version deleted]]
David Winsemius
2012-Jan-01 17:58 UTC
[R] what's the command in R to completely clear the state of the console(including clearing up libraries, etc?)
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