[R] getting rid of .Rhistory and .RData
David Winsemius
dwinsemius at comcast.net
Thu Aug 15 00:00:00 CEST 2013
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. Perhaps in a .Rprofile:
Sys.setenv(R_HISTSIZE=0) # untested, ... I like my history
--
David.
> -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" <bt_jannis at yahoo.de> wrote:
>
>> 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.
>>
>> Cheers
>> Jannis
>>
>> On 14.08.2013 16:01, 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 code to delete this file in .Last function
>>> but somehow I think that R should provide an option not to clutter the
>>> working directories in such ways. Or to use one central .RHistory file.
>>>
>>> Any ideas?
>>>
>>> Jannis
>>>
>>> On 14.08.2013 14:33, Jannis wrote:
>>>> 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 at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>> PLEASE do read the posting guide
>>>> http://www.R-project.org/posting-guide.html
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list