Skip to content

malloc problem R2.6.1 on leopard

2 messages · Benilton Carvalho, Thomas Lumley

#
The first thing to notice is that:

?expand.grid

might be useful...

The second is that:

allsubsets(30) will return you an object of 2^30 rows by 30 columns....

How big would an object like that be???

4*(2^30)*30/(1024^3) = 120GB....

b
On Nov 30, 2007, at 11:17 AM, Hans Kestler wrote:

            
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2419 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20071202/68970a21/attachment.bin
1 day later
#
Just one additional note.  This is where the 'max used' column in the 
output of gc() is helpful. The error message told you the size of the 
failed malloc attempt, gc() would tell you how much memory you had 
allocated at that point.

 	-thomas
On Sun, 2 Dec 2007, Benilton Carvalho wrote:

            
Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle