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

From: Rod <villegas.ro_at_gmail.com>
Date: Tue, 8 Jan 2008 14:49:20 +0100

On Jan 8, 2008 12:41 PM, Duncan Murdoch <murdoch_at_stats.uwo.ca> wrote:
>
> Rod wrote:
> > 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 !
> Could you try R-patched? I recently fixed a minor bug that could have
> symptoms like this. Under certain conditions it would miscalculate the
> amount of available memory. You can download a copy from
> cran.r-project.org/bin/windows/base/rpatched.html.
>
> Duncan Murdoch
>

Dear Duncan,

Thank for your advice. But, the patched version produce the same error.

Regards,

Rodrigo



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. Received on Tue 08 Jan 2008 - 13:52:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Jan 2008 - 15:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive