[R] problem with .Last

Matthew Wiener mcw at ln.nimh.nih.gov
Sat Jan 30 22:31:35 CET 1999


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



More information about the R-help mailing list