Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.SGI.3.96.990130162303.15295A-100000@ln.nimh.nih.gov>
Date: 1999-01-30T21:31:35Z
From: Matthew Wiener
Subject: problem with .Last

Hi.

Having recently lost some data due to insufficient backing up (I know, I
know), I decided to put in some automatic backing up to compensate for my
laziness.  I would like to use the .Last function to dump a copy of all
the objects in my directory into a text file on the disk.  This may take a
little time, and take up some disk space, but that's OK.

.Last, however, appears not to actually be called when I quit.  That is,
if I run my .Last function:

> .Last
.Last <- function(){
  dump(ls(pos=1), "latest.dump")
}
> .Last()


I get the file out the way I want.  If I quit, I get nothing.  I've also
checked with a last function that just prints a string, with the same
results:  the function works when called from the command line, but now
when I quit.  The .First function, on the other hand, seems to work fine.

I'm running version 0.63.2 under Linux-PPC.  Have I done something wrong,
or does .Last not work yet?

Thanks,
		Matt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._