[Date Index] [Thread Index] [Author Index]
Re: ClearAll ?? or what
On 8/26/09 at 7:41 AM, noslowski at comcast.net (noslowski) wrote: >Is there a command that will remove all variables, custom functions, >equations and so on? I have tried every one that I can find >including ClearAll [ " Global ' * " >], and so on. There is a package that comes with Mathematic that will probably do what you need. Specifically, doing <<Utilities`CleanSlate` at the start of a session will load the package. Then at some later time in the session you can simply do CleanSlate which will cause the will clear everything out that was created *after* the CleanSlate package was loaded. I find this so handy that I have the following lines at the end of my init.m file <<PacletManager`; <<Utilities`CleanSlate`; SetOptions[CleanSlate,Verbose->False]; I explicitly load the PacletManager since I found in version 6 it loaded after every thing in my init.m file executed. As a consequence, omitting this meant everytime I did CleanSlate, the paclet manager got zapped and I lost that functionality. I do not know if this is still an issue with version 7 or not since I've not tried omitting the line that explicitly loads the paclet manager from my init.m file since using version 7.