From ronggui.huang at gmail.com  Fri Jun  5 14:37:23 2009
From: ronggui.huang at gmail.com (Ronggui Huang)
Date: Fri, 5 Jun 2009 20:37:23 +0800
Subject: [Rd] Show location of workspace image on quit?
In-Reply-To: <4A290C16.40102@stats.uwo.ca>
References: <d8ad40b50906050453q5ae944e2v18cf12093e397ed1@mail.gmail.com> 
	<4A290C16.40102@stats.uwo.ca>
Message-ID: <38b9f0350906050537l3bb6ee77x89ca854ffd9ffb96@mail.gmail.com>

2009/6/5 Duncan Murdoch <murdoch at stats.uwo.ca>:
> 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]
>
> If people are working deep in a directory tree, the path might end up too
> long; you might want to think about limiting it (e.g. by leaving off the
> root).

Or print it in mutiple lines? e.g.

Save workspace to "/home/me/
workspace/.RData"? [y/n/c]

> Duncan Murdoch
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



-- 
HUANG Ronggui, Wincent
PhD Candidate
Dept of Public and Social Administration
City University of Hong Kong
Home page: http://asrr.r-forge.r-project.org/rghuang.html



[Rd] Show location of workspace image on quit?
Ronggui Huang