[R] How to solve error : "cannot allocate vector of size 1208235 Kb"

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Feb 11 08:03:30 CET 2005


You need to read the rw-FAQ (as the posting guide asks) and make the R 
executable capable of using more than 2Gb (assuming that you have already 
enabled your OS).

On Fri, 11 Feb 2005, Kum-Hoe Hwang wrote:

> Howdy R gurus !
>
> I am newbie to R
> I use R 2.0.1 in Windows XP. When I run R
> I got the follwoing memory error.
> My physical memory size is 3 Gb.
> My R got the memory problem when it reached to
> about 2 Gb.
>
> Thanks in advance,
>
>
>> library(spdep)
>> sfr.lagsarlm <- lagsarlm(sfr.data$Bldgsqft ~ sfr.data$Ncounty + sfr.data$Nugb + sfr.data$Ngroup, data=sfr.data, listw=sfr.listw, method="eigen")
> Error: cannot allocate vector of size 1208235 Kb
>> memory.size(max=FALSE)
> [1] 17862584

That tells you the state after that command failed: the max=TRUE figure is
more interesting at that point.

>> memory.limit(size=NA)
> [1] 3145728000
>>
>
>
> -- 
> Kum-Hoe Hwang, Ph.D.
>
> Kyonggi Research Institute, Korea (ROK)
> (Urban Planning and GIS)
> Phone : 82-31-250-3283
> Email : phdhwang at gmail.com
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list