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. 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"  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@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@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@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

__
R-help@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.


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 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.

That would be a terrible idea.  I have dozens of directories and I
want to keep the objects, code and history pertinent to each one.


|> 
|> 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@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@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.

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~}   Great minds discuss ideas
 _( Y )_ Average minds discuss events 
(:_~*~_:)  Small minds discuss people  
 (_)-(_)  . Eleanor Roosevelt
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
R-help@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.


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 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@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@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@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.


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.

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@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@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@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.


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 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@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@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.


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-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.


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,
>
>
>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
>
>__
>R-help@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@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] 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

__
R-help@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.