From ripley at stats.ox.ac.uk  Fri Jun  5 16:39:57 2009
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 5 Jun 2009 15:39:57 +0100 (BST)
Subject: [Rd] Show location of workspace image on quit?
In-Reply-To: <4A2923B9.8040200@stats.uwo.ca>
References: <d8ad40b50906050453q5ae944e2v18cf12093e397ed1@mail.gmail.com>
	<4A290C16.40102@stats.uwo.ca> <4A29115B.8060405@idi.ntnu.no>
	<1244205963.3903.4.camel@ubuntu>
	<d8ad40b50906050646re07576ao5dc96695840eec9e@mail.gmail.com>
	<4A2923B9.8040200@stats.uwo.ca>
Message-ID: <alpine.LFD.2.00.0906051528380.13402@gannet.stats.ox.ac.uk>

Any change here is not so simple to implement as to propose: this is 
not something in the R engine, but part of the clean-up action in the 
front end.  That means that there are at least 3 versions to handle in 
the standard front ends (and that for R.app is not in the main source 
tarball).  And at least two of them is offered for translation so 
there are many copies.  Then there are other front-ends such as JGR 
and RKward ....

I hope people proposing this will offer complete patches.

On Fri, 5 Jun 2009, Duncan Murdoch wrote:

> On 6/5/2009 9:46 AM, Barry Rowlingson wrote:
>> On Fri, Jun 5, 2009 at 1:46 PM, Mathieu Ribatet<mathieu.ribatet at epfl.ch> 
>> wrote:
>>> I guess that having something like this
>>>> q()
>>>> Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]:
>>> 
>>> where "e" means Editing the path should be clear enought, isn't it?
>>
>>  'e' might be thought to mean 'exit' in English, which makes me think
>> we also need to make sure this can all be translated. Maybe 'p' for
>> path? Or 'e' for 'elsewhere'? This is getting tricky :)
>>
>>  I think I'd rather leave off the 'e' option for simplicity - if the
>> user wants to save elsewhere they can hit 'c' and do save() or
>> setcwd()  themselves, I'm not sure we need to put extra functionality
>> into the q function.
>
> An alternative to think about is to report where the file was saved, rather 
> than tease the user by suggesting s/he has a choice.  This is a bit harder in 
> the GUIs, but would be very easy in a console, just print the path after 
> quitting:
>
> Save workspace image? [y/n/c]: y
> Image saved to /home/me/workspace/.RData
>
> In the Windows GUI you could pop up a dialog box to say this, with a checkbox 
> saying "don't show me this next time".
>
> Duncan Murdoch
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Show location of workspace image on quit?
Prof Brian Ripley