Hi, I have Win XP 32, 4 gig DDR2 and R 2.9.2. I have memory limit problems.> memory.limit(4090)[1] 4090> memory.limit()[1] 4090> a<-trans.matrix.f(7) # made big matrix of integer 16384*16384Error: cannot allocate vector of size 512.0 Mb I not have other objects in R memory. what I do? trans.matrix.f <- function(x){ tr.mat <- matrix(c(0,1,1,0),2) for(i in 2:(2*x)) tr.mat <- rbind(cbind(tr.mat ,tr.mat+1), cbind(tr.mat+1,tr.mat )) return(tr.mat) } Thanks! Oleg. [[alternative HTML version deleted]]
Hi, On Thu, Sep 10, 2009 at 8:24 PM, oleg portnoy<oleg.portnoy75 at gmail.com> wrote:> Hi, > I have Win XP 32, 4 gig DDR2 and R 2.9.2. > I have memory limit problems. >> memory.limit(4090) > [1] 4090 > >> memory.limit() > [1] 4090 >> a<-trans.matrix.f(7) # made big matrix of integer 16384*16384 > Error: cannot allocate vector of size 512.0 Mb > I not have other objects in R memory. > what I do?Get a 64 bit system and ditch windows? http://thread.gmane.org/gmane.comp.lang.r.general/64637 Or maybe the bigmemory package can help? http://cran.r-project.org/web/packages/bigmemory/ -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact