From mathieu.ribatet at epfl.ch  Fri Jun  5 14:46:03 2009
From: mathieu.ribatet at epfl.ch (Mathieu Ribatet)
Date: Fri, 05 Jun 2009 14:46:03 +0200
Subject: [Rd] Show location of workspace image on quit?
In-Reply-To: <4A29115B.8060405@idi.ntnu.no>
References: <d8ad40b50906050453q5ae944e2v18cf12093e397ed1@mail.gmail.com>
	<4A290C16.40102@stats.uwo.ca>  <4A29115B.8060405@idi.ntnu.no>
Message-ID: <1244205963.3903.4.camel@ubuntu>

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?

Best,
Mathieu

Le vendredi 05 juin 2009 ? 14:36 +0200, Wacek Kusnierczyk a ?crit :
> Duncan Murdoch wrote:
> > On 05/06/2009 7:53 AM, Barry Rowlingson wrote:
> >> When I quit R, it says:
> >>
> >>  > q()
> >>  Save workspace image? [y/n/c]:
> >>
> >>  and since I've probably got 3 R sessions running in however many
> >> different directories and I might have jumped around with setwd() , I
> >> forget exactly where R wants to save its workspace image. So could q()
> >> be changed to say what file it is going to save to before it does?
> >>
> >>  Currently I have to hit 'c', then do getcwd(), then quit again.
> >> Would something like
> >>
> >>  > q()
> >>  Save workspace image (/home/me/workspace/.RData)? [y/n/c]:
> >>
> >>  be useful to anyone else? Just thought I'd ask before I dive into
> >> internals or wrap the q function for myself.
> >
> > That sounds like a great suggestion.  I might word it as
> >
> > Save workspace to "/home/me/workspace/.RData"? [y/n/c]
> 
> but then what would happen if you choose 'n'?  i'd expect a prompt for
> another path --  and i'd suspect this is what others would expect, too. 
> with the message as barry suggests, exiting without saving is the most
> natural thing, which is what happens in the current implementation. 
> 
> if you insist on your version, it would be better, i think, to change
> the behaviour, too.
> 
> 
> vQ
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
-- 
Institute of Mathematics
Ecole Polytechnique F?d?rale de Lausanne
STAT-IMA-FSB-EPFL, Station 8
CH-1015 Lausanne   Switzerland
http://stat.epfl.ch/
Tel: + 41 (0)21 693 7907



[Rd] Show location of workspace image on quit?
Mathieu Ribatet