Skip to content
Prev 3222 / 29559 Next

memory - cannot allocate vector of size 'x'

Roger,

I am running it in Windows and is 8 bytes. I tried to use the gc() for
the regression kriging but it did not work, instead I did employ the
gctorture() that turn "R" to run extremely slow (it is still running,
almost 8 hours so far, it may finish tomorrow). For the regression
kriging, I am using 163 data points:

R code: Regression kriging
 ystrk = krige(yststep$call$formula,ystdec3,predictors,vgf1yst)

where:
yststep: is the regression residual
ystdec3: are the data points (163 points)
predictors: are the asciigrid file containing the predictor variables
(9 raster layers)
vgf1yst: fitted variogram

error message:
In addition: There were 12 warnings (use warnings() to see them)

warning messages:
1: Reached total allocation of 1535Mb: see help(memory.size)
 ...
3: In slot(value, what) <- slot(from, what) :
 ...
8: In slot(value, what) <- slot(from, what) :
Reached total allocation of 1535Mb: see help(memory.size)
...
12: In `slot<-`(`*tmp*`, what, value = structure(c(-293438.89990765,  ... :
Reached total allocation of 1535Mb: see help(memory.size)


Is there another way to get around garbage collection than gctorture().?

Sincerely,

Jose
On Tue, Mar 4, 2008 at 3:48 AM, Roger Bivand <Roger.Bivand at nhh.no> wrote: