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

Rod villegas.ro at gmail.com
Tue Jan 8 10:52:35 CET 2008


Hello,

I have a memory problem when I run package WinBUGS with R (2.6.1).
Until now I have been using a Pentium IV 3.2Ghz computer with 512Mb of
RAM memory (with Windows XP Pro SP2), and I hadn't had any problem.
Now I have a new computer with the following characteristics: Intel
Core 2 duo 2.33Ghz and 3Gb of RAM memory (with Windows XP Pro SP2) and
when I am running the same R syntax I receive the following error
message:

"Error: cannot allocate vector of size 216.0 Mb".

This is an extract of my R syntax:

> memory.limit(4000)
NULL
> simu.BYM<-bugs(data, inits, parameters, model.file="Modelo.txt", n.chains=3, n.iter=200000, n.burnin=20000, n.thin=180, debug=FALSE, DIC=FALSE, digits=5, codaPkg=FALSE, bugs.directory="c:/Archivos de programa/WinBUGS14", working.directory=NULL)
Error: cannot allocate vector of size 216.0 Mb

I have tried:
-Change size of virtual memory inside Windows XP
-change the R memory settings
-run from DOS (R CMD BATCH...)
-reviewed the R Windows FAQ and R-Help.

but I haven't be able to find a solution !


Thank you very Much,

Rodrigo




More information about the R-help mailing list