[R] memory stack overflow

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue May 19 16:39:26 CEST 2009


That is very unusual, but the C stack can be increased under Windows 
by recompiling R (see src/gnuwin32/front-ends/Makefile). On most other 
OSes it is much easier, just adjust the setting via ulimit or limit in 
your shell.

But I suspect the problem is that your model is too complex. 
Incidentally, is your R current?  Stack usage in expanding models was 
reduced recently.

On Tue, 19 May 2009, Nora Pérez wrote:

> Dear colleagues,
>
> I am trying a glm.nb for the distribution of a plant species with 93 
> environmental variables. I execute the instruction and I get the 
> following message: "Error: C stack usage is too close to the limit".

Well, we don't know what you did (see the footer of this message) but 
if you mean 93 explanatory variables I hope you have tens of thousnads 
of cases and are just looking for a predictive model.

> How can I increase the memory of R?
>
> Your sincerely,
>
> Nora.
>
>
> _________________________________________________________________
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

-- 
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