--save and memory

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
22 Sep 1998 13:28:32 +0200

Martyn Plummer <plummer@iarc.fr> writes:

> I agree, and I sent a message to R-bugs to this effect
> (currently filed under "startup"), although I was thinking
> in terms of interactive use. Making this a fatal error
> seems the best choice to me.

Agreed. As far as I can see, the obvious would be to add an else clause in
main.c, like this:

    if (!doneit) {
        doneit = 1;
        R_Suicide("unable to restore saved data\n (remove .RData or increase mem

...but that gives the following curious effect.
Interactively, you get the expected, but...

[pd@blueberry R]$ bin/R --save < /dev/null

R : Copyright 1998, The R Development Core Team
Version 0.63.0 Unstable (September 22, 1998)


[Previously saved workspace restored]

Error: vector heap is too small to restore data
Execution halted

The strange thing is that it actually does *not* modify .RData, so in
a sense the fix is OK, but why does it give the success message before
bailing out???

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
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