Re: [R] contextstack overflow

From: Gisela Sturm <>
Date: Mon, 17 Mar 2008 12:53:30 +0100

> I am an absolute beginner in R programming? I have a really long R-code
> many variables. When I run the program I always get an error at the same
> place called "contextstack overflow". Does anybody know what to do in this
> case? Are there so strict limitations in R? If yes, is it possible to
> it? How?

There are limits, and they are quite high -- it is far more likely that you have an error in your R code.

In this particular case, it is saying that you have more than 50 nested parse contexts -- that is nested if, [, [[, {, ( calls.

I find it helpful to use a syntax-aware editor (e.g. ESS) as that will highlight these things for you via indentation patterns.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

Thank you very much!
I think I have more than 50 nested parse contexts. :-/
Is there a possibility to change (increase) this limit?


______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 17 Mar 2008 - 12:00:26 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 Mon 17 Mar 2008 - 13:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive