Skip to content
Prev 1950 / 398506 Next

cant restore .Rdata

It might be the number of cons cells, rather than the vector heap size
that is too small.  Right this moment, I'm patching my copy of R to allow
up to 16000000 cons cells.  Here's the patch  (watch for the long lines):

--start-patch--

--- R-0.63.2.orig/src/unix/system.c     Thu Nov 12 08:06:02 1998
+++ R-0.63.2/src/unix/system.c  Wed Jan 27 12:53:59 1999
@@ -502,7 +502,7 @@
                else p = &(*av)[2];
                value = strtol(p, &p, 10);
                if(*p) goto badargs;
-               if(value < R_NSize || value > 1000000)
+               if(value < R_NSize || value > 16000000)
                    REprintf("WARNING: invalid language heap size ignored\n");
                else
                    R_NSize = value;
@@ -511,7 +511,7 @@
                ac--; av++; p = *av;
                value = strtol(p, &p, 10);
                if(*p) goto badargs;
-               if(value < R_NSize || value > 1000000)
+               if(value < R_NSize || value > 16000000)
                    REprintf("WARNING: invalid language heap size '%d' ignored, using default = %d\n", value, R_NSize);
                else
                    R_NSize = value;


---end-patch---

This seems to work for me.  I've now been able to load the large "dput"
file that didn't work before.

-Greg
On Wed, 27 Jan 1999 royle at penguin.irm.r9.fws.gov wrote:

            
-------------------------------------------------------------------------------
    Gregory R. Warnes          | It is high time that the ideal of success
warnes at biostat.washington.edu  |  be replaced by the ideal of service.
                               |                       Albert Einstein
-------------------------------------------------------------------------------


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