[R-SIG-Mac] R.app
Loren Engrav
engrav at u.washington.edu
Wed May 6 16:15:11 CEST 2009
Thank you
Several explained that in the workspace creating object "x" will overwrite
previous object "x" with no warning and so serious users keep Rdata's
separate and use "x" over and over.
I usually manually save important Rdata's and ignore the default, but I can
change, or every so often simply find all the Rdata's and delete them, or
since drive space is cheap, simply ignore them (a "big" Rdata of mine is
only 400mb).
> From: Simon Urbanek <simon.urbanek at r-project.org>
> Date: Wed, 6 May 2009 10:58:37 +0200
> 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 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