Re: [R] Reset R to a vanilla state

2010-12-16 Thread Marc Schwartz
If you are using Emacs/ESS/org-mode etc., you may be better of posting to the ESS-Help list, where there are folks that I know of who are engaged in using org-mode for R coding and documentation. They may be able to offer some insights into their practices. More info at: https://stat.ethz.ch

Re: [R] Reset R to a vanilla state

2010-12-16 Thread Holger Hoefling
Hi, I am writing code in Emacs using org-mode and babel. I have a number of code blocks that are tangled into several files with some files spanning several code blocks. Each of these files is supposed to run independently of each other on a clean version of R, however I also want to be able to ex

Re: [R] Reset R to a vanilla state

2010-12-16 Thread David Winsemius
On Dec 16, 2010, at 10:01 AM, jim holtman wrote: exit from the current session and startup a new one. Possibly with an additional step of deleting .Rdata from the working directory. On Thu, Dec 16, 2010 at 9:12 AM, Holger Hoefling wrote: Hi all, I need some help with R. I am lookin

Re: [R] Reset R to a vanilla state

2010-12-16 Thread jim holtman
exit from the current session and startup a new one. On Thu, Dec 16, 2010 at 9:12 AM, Holger Hoefling wrote: > Hi all, > > I need some help with R. I am looking for a function that puts R back into a > vanilla state (exactly the same when I just started it). Specifically I want > all objects in t

Re: [R] Reset R to a vanilla state

2010-12-16 Thread Georg Ruß
On 16/12/10 15:12:47, Holger Hoefling wrote: > Specifically I want all objects in the workspace removed rm(list=ls()) should do this trick. > and all non-base packages detached and unloaded You may obtain the list of loaded packages via (.packages()) Store this at the beginning of your session

[R] Reset R to a vanilla state

2010-12-16 Thread Holger Hoefling
Hi all, I need some help with R. I am looking for a function that puts R back into a vanilla state (exactly the same when I just started it). Specifically I want all objects in the workspace removed and all non-base packages detached and unloaded; all base packages that are loaded on startup shoul