[R] Error: cannot allocate vector of size...

R. Michael Weylandt michael.weylandt at gmail.com
Tue Apr 10 17:40:48 CEST 2012


You probably have more objects in your workspace than you did
previously. Clean them out (or just use a new R session) and things
should go back to normal.

You might also want to follow up on the help(memory.size) hint though
-- doesn't Windows impose a memory limit unless you ask it for more?

Michael

On Tue, Apr 10, 2012 at 11:09 AM, Frederico Mestre
<mestre.frederico at gmail.com> wrote:
> Hello:
>
>
>
> While running R doing the analysis of my data I (using packages such as
> BIOMOD or e1071) get the following error as a result of several of my
> analysis:
>
>
>
> Error: cannot allocate vector of size 998.5 Mb
>
> In addition: Warning messages:
>
> 1: In array(c(rep.int(c(1, numeric(n)), n - 1L), 1), d, dn) :
>
>  Reached total allocation of 4095Mb: see help(memory.size)
>
> 2: In array(c(rep.int(c(1, numeric(n)), n - 1L), 1), d, dn) :
>
>  Reached total allocation of 4095Mb: see help(memory.size)
>
> 3: In array(c(rep.int(c(1, numeric(n)), n - 1L), 1), d, dn) :
>
>  Reached total allocation of 4095Mb: see help(memory.size)
>
> 4: In array(c(rep.int(c(1, numeric(n)), n - 1L), 1), d, dn) :
>
>  Reached total allocation of 4095Mb: see help(memory.size)
>
>
>
> My question is: I've done the analysis of this same data in the same
> computer and everything worked out fine. Now I get this error as a result of
> several analysis. What changed?
>
>
>
> I'm running R in a 64 bits, Windows 7 , 4 GB of RAM computer.
>
>
>
> Thanks,
>
> Frederico Mestre
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list