From murdoch at stats.uwo.ca  Fri Jun  5 15:55:05 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 05 Jun 2009 09:55:05 -0400
Subject: [Rd] Show location of workspace image on quit?
In-Reply-To: <d8ad40b50906050646re07576ao5dc96695840eec9e@mail.gmail.com>
References: <d8ad40b50906050453q5ae944e2v18cf12093e397ed1@mail.gmail.com>	
	<4A290C16.40102@stats.uwo.ca> <4A29115B.8060405@idi.ntnu.no>	
	<1244205963.3903.4.camel@ubuntu>
	<d8ad40b50906050646re07576ao5dc96695840eec9e@mail.gmail.com>
Message-ID: <4A2923B9.8040200@stats.uwo.ca>

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



[Rd] Show location of workspace image on quit?
Duncan Murdoch