Re: [R] getting rid of .Rhistory and .RData

2013-08-14 Thread David Winsemius
On Aug 14, 2013, at 8:16 AM, MacQueen, Don wrote: > A look at ?history shows an environment variable that might help you > restrict it to just one central .Rhistory file. I'm guessing this refers to the fourth paragraph and it appears that suppressing any history saving may be possible as well.

Re: [R] getting rid of .Rhistory and .RData

2013-08-14 Thread Patrick Connolly
On Wed, 14-Aug-2013 at 04:01PM +0200, Jannis wrote: |> Well, I have made some tests with the 'no save' option. This only |> seems to control the saving of .RData files (at least none appeared |> in the working directory in my tests). A file called .RHistory is |> still created. I can now put some

Re: [R] getting rid of .Rhistory and .RData

2013-08-14 Thread MacQueen, Don
A look at ?history shows an environment variable that might help you restrict it to just one central .Rhistory file. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 8/14/13 7:15 AM, "Jannis" wrote: >OK, this seems to b

Re: [R] getting rid of .Rhistory and .RData

2013-08-14 Thread Jannis
OK, this seems to be only a problem when I use emacs/ess. I will try to find a solution to this but this does not seem to be related to emacs. In case anyone of you has an Idea: I use: (setq inferior-R-args "--no-save --no-restore --silent") to start R, but still a .RHistory file is saved. Ch

Re: [R] getting rid of .Rhistory and .RData

2013-08-14 Thread Jannis
Well, I have made some tests with the 'no save' option. This only seems to control the saving of .RData files (at least none appeared in the working directory in my tests). A file called .RHistory is still created. I can now put some code to delete this file in .Last function but somehow I thin

Re: [R] getting rid of .Rhistory and .RData

2013-08-14 Thread Jannis
Thanks, I will look into ways to tell ess/emacs to use such options. I am, however, quite sure that I have never answered "yes" to the question when quitting R. Cheers Jannis On 13.08.2013 20:21, MacQueen, Don wrote: R --no-save __ R-help@r-pro

Re: [R] getting rid of .Rhistory and .RData

2013-08-13 Thread MacQueen, Don
The following should help: What does R ask you each time you quit R? Answer no. Start R with R --no-save -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 8/13/13 9:15 AM, "Jannis" wrote: >Dear R users, > > >occasio

[R] getting rid of .Rhistory and .RData

2013-08-13 Thread Jannis
Dear R users, occasionally I find .Rhistory and/or .RData files cluttered around in my file structure. Is there a way to tell R not to save such files? Or to use one central location where to save them (if they are of any use)? I have looked through options() to no avail. Cheers Jannis __