[R-SIG-Mac] R.app

Simon Urbanek simon.urbanek at r-project.org
Wed May 6 10:58:37 CEST 2009


Loren,

On May 5, 2009, at 6:37 PM, Loren Engrav wrote:

> Thank you
> The return before clicking anywhere else solved that problem, clever
>
> So I trash all invisible .Rhistory and .Rdata files
> Then made a new folder (called R_History_Data) and aim Preferences  
> at this
> folder (using the return)
> Then run R.app and yes, I have one .Rhistory and one .Rdata in that  
> folder
>
> But then I change the working directory and do some stuff
> Then quit and save working directory
> And now I have two of each invisible files, one in R_History_Data  
> and one in
> the working directory folder
>
> So it still appears as I move from directory to directory I will leave
> invisible .Rhistory and .Rdata files all over
>
> Is it possible to have Rhistory and Rdata always written to the
> R_History_Data folder?
>

Currently, no. For history, yes, but not for .RData, because the  
assumption is that you want to save the workspace in the directory  
that you are in at the time (many users start R and then change the  
working directory to the project directory so this behavior is  
explicitly intended). This is also the behavior in R on the command  
line. Note that you are explicitly saving the workspace, so it's not  
as if R.app is saving things on its own randomly - you actually told  
it to do so.

We could add an option that allows you to force R.app to save the  
workspace in the same location that it was loaded from or started  
(which means that you would specify that location implicitly by the  
way you start R.app). I'm slightly hesitant to do that, because it's  
not something one is used to from R, but it could be done (but then  
the .Rhistory option is already non-standard ...).

Cheers,
Simon


>
>
>> From: Rob Goedman <robjgoedman at me.com>
>> Date: Tue, 05 May 2009 07:13:12 -0700
>> To: Loren Engrav <engrav at u.washington.edu>
>> Cc: "r-sig-mac at stat.math.ethz.ch" <r-sig-mac at stat.math.ethz.ch>
>> Subject: Re: [R-SIG-Mac] R.app
>>
>> Loren,
>>
>> On May 4, 2009, at 8:41 PM, Loren Engrav wrote:
>>
>>> Using 10.5.5 and R.app 2.8.0 and MBP and MP
>>>
>>> All seems to work fine but I have .Rhistory and .Rdata invisible
>>> files all
>>> over my hard drive
>>> Can I have one of each in a known place? Is this described  
>>> somewhere?
>>
>> Yes, you can, see notes on the preferences page.
>>
>> 'Always apply' will help with.RData.
>>
>> For .Rhistory use e.g. the setting you're trying to get accepted  
>> below.
>>
>>> Also
>>> In Preferences if I set R history file to ~/.Rhistory and then click
>>> on any
>>> checkbox the ~/ is removed.  How do I stop this? Described  
>>> somewhere?
>>
>> Did you type a return after modifying the field (before clicking on
>> any other
>> checkbox)?
>>
>> Regards,
>> Rob
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list