From Mark.Bravington@csiro.au  Thu Sep 19 05:54:28 2002
From: Mark.Bravington@csiro.au (Mark.Bravington@csiro.au)
Date: Thu, 19 Sep 2002 06:54:28 +0200 (MET DST)
Subject: savehistory directories and quitting R (PR#2038)
Message-ID: <200209190454.GAA13201@pubhealth.ku.dk>

#
#       r-bugs@r-project.org
#
######################################################

Because I work in different directories, but always want to save my
.Rhistory in the same place, I have changed the system function savehistory
to this:

function (file = "D:/R50/.Rhistory") 
invisible(.Internal(savehistory(file)))

When I use q() to quit R, and it asks me whether I want to "save current
workspace", a response of YES means that the .Rhistory is saved in the
current working directory, rather than D:/R50/.Rhistory. I take this to mean
that the quit-on-prompt sequence makes a direct call to .Internal(
savehistory...) rather than going via the actual savehistory() function. It
would be nicer if prompt-on-quit would honour the user's definition of
savehistory.

(Responding NO to the "save current..." prompt means that .Rhistory isn't
saved at all, which is reasonable.)

I admit that this is a very minor bug, because I can set .Last to call
savehistory directly. But I just thought you should know...

cheers
Mark


*******************************

Mark Bravington
CSIRO (CMIS)
PO Box 1538
Castray Esplanade
Hobart
TAS 7001

phone (61) 3 6232 5118
fax (61) 3 6232 5012
Mark.Bravington@csiro.au 


--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = i386
 os = mingw32
 system = i386, mingw32
 status = 
 major = 1
 minor = 5.0
 year = 2002
 month = 04
 day = 29
 language = R

Windows 2000 Professional (build 2195) Service Pack 2.0

Search Path:
 .GlobalEnv, package:handy, package:debug, mvb.session.info,
package:mvbutils, package:tcltk, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


savehistory directories and quitting R (PR#2038)
Mark.Bravington@csiro.au