Skip to content

Error: cannot allocate vector of size 1.2 Gb

5 messages · Joris Meys, Roman Luštrik

#
Dear Roman,

could you give us the trace given by traceback() ? I suspect the error
is resulting from the permutations and/or jackknife procedure in the
underlying functions specaccum and specpool.

You can take a look at the package R.huge, but that one is deprecated
already. There are other packages around too, but I have no experience
with them. You find some more tips here :
http://www.matthewckeller.com/html/memory.html

This should give you a place to start looking.
Kind regards
Joris
On Mon, Oct 12, 2009 at 11:39 AM, romunov <romunov at gmail.com> wrote:
#
Hi Roman,

that throws a different light on the problem. It goes wrong from the
start, so it has little to do with the bootstrap or jackknife
procedures. R.huge won't help you either.

Likely your error comes from the fact that "factor1" is not an
argument of the function accumcomp. the argument is "factor". As R
doesn't find this, it'll try to tabulate the complete environmental
dataset, and this gives the memory overflow.

Try :

poacc2 <- accumcomp(PoCom, y=PoEnv, factor="HM_sprem", method="exact")

That should work. I can't try it out without dataset off course. If it
doesn't work, post the traceback again, I'll take another look.

Kind regards
Joris
On Mon, Oct 12, 2009 at 1:07 PM, romunov <romunov at gmail.com> wrote: