[R] Error: protect () : protection stack overflow

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Dec 16 00:10:35 CET 2008


No one seems to have mentioned that the size of the protection stack can 
be set when starting R. It worked for me starting R with 
--max-ppsize=100000.  I'm not sure that will do more that postpone the 
problem, but it may help.

On Tue, 9 Dec 2008, Bert Gunter wrote:

> Apparently the former, as I got the same error in R2.7.1 on Windows.
>
> Matbe relevant info(?):
>
> $platform
> [1] "i386-pc-mingw32"
>
> $arch
> [1] "i386"
>
> $os
> [1] "mingw32"
>
> $system
> [1] "i386, mingw32"
>
>
> -- Bert Gunter
>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
> Behalf Of Bricklemyer, Ross S
> Sent: Tuesday, December 09, 2008 4:10 PM
> To: r-help at r-project.org
> Subject: [R] Error: protect () : protection stack overflow
>
> I am attempting to create a formula using as.formula for a PLS analysis.  I
> have used the code below successfully, but in a previous R version and with
> many fewer predictors.  Any help getting all of these predictors into one
> formula would be greatly appreciated.
>
> TC.fmla <- as.formula(paste("TC ~ ", paste(vars, collapse= "+")))
>
> As I mentioned, this code worked fine in a previous R version and with 2050
> vars, however I now have the latest version of R and 36334 predictors in
> vars.
>
> Do I simply have too many predictors for this to work, or is this an R 2.8.0
> issue?
>
> Best,
> Ross
>
> *******************************************************************
> Ross Bricklemyer
> Dept. of Crop and Soil Sciences
> Washington State University
> 251 Johnson Hall
> PO Box 646420
> Pullman, WA 99164-6420
> Work: 509.335.3661
> Cell/Home: 406.570.8576
> Fax: 509.335.8674
> Email: rsb at wsu.edu
>
> ______________________________________________
> 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.
>
> ______________________________________________
> 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