[R] Memory Leak in OS X version of R?

About this list Date view Thread view Subject view Author view Attachment view

From: David L. Van Brunt, Ph.D. (dvanbrunt@well-wired.com)
Date: Thu 20 May 2004 - 13:52:26 EST


Message-id: <BCD195AA.912F%dvanbrunt@well-wired.com>

This is the conclusion from a prior thread ([R] " cannot allocate vector of
length 1072693248") which ended with no other answer but that there must be
a problem in the OS X version of R, or in the compile of the source on OS X.

Iıve posted code and data here:
http://www.well-wired.com/reflibrary/uploads/1084503247.zip

If you setwd() into the directory that is made, then ³source()² the ³.R²
file, it should run fine on Windows but crash on any machine with OS X
(Panther) giving: ³Error in as.vector(data) : cannot allocate vector of
length 1073741824² after a few iterations of the loop.

I've repeated this on a Powerbook G4 with 500 MB of RAM, an iMac with 128M
of RAM, and a Dual 2GHz G5 with 1.5 Gig of RAM. Have used the Raqua, the
Frameworks installation, and a fresh compile of the source using Fink in the
X11 implementation. No matter the machine or the version (1.8x through 1.9,
OS X or Unix X11), I get the same result.

Thanks to Andy Liaw for helping me tune the code this far.

I'm stumped. Would love to hear others' experience with this, and if they
can reproduce the problem elsewhere.

-- 
David L. Van Brunt, Ph.D.
Outlier Consulting & Development
mailto: <ocd@well-wired.com>

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST