From J.C.Rougier@durham.ac.uk  Thu Jun 17 10:14:17 1999
From: J.C.Rougier@durham.ac.uk (Jonathan Rougier)
Date: Thu, 17 Jun 1999 10:14:17 +0100 (BST)
Subject: save.image()
Message-ID: <Pine.GSO.3.96.990617100025.25104D-100000@laplace>

Would it be reasonable to suggest adding an `all' flag to save.image(),
i.e.

"save.image" <-
function (f = ".RData", all.names = F) 
eval(substitute(save(list = ls(all.names = all.names), file = f)),
    .GlobalEnv)

I only ask because I keep losing my .First() function.  I would like to
start R in a particular directory and have it configure according to the
First() function in .RData in that directory.  But every time I want to
update the objects in .RData at the end of a session by save.image(), the
.First() is lost.  I know I could use an .Rprofile in the directory, but
my understanding is that it executes before the .Rprofile in the home
directory, while a .First() would execute afterwards, which is better for
modifying my general settings.

Alternatively, perhaps save.image() might be modified to keep .First() and
Last() as the default. 

Many thanks, Jonathan (v. 0.63.2)

Jonathan Rougier                       Science Laboratories
Department of Mathematical Sciences    South Road
University of Durham                   Durham DH1 3LE

"[B]egin upon the precept ... that the things we see are to be 
 weighed in the scale with what we know"  (Meredith, 1879, The Egoist)

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


save.image()
Jonathan Rougier