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

Bert Gunter gunter.berton at gene.com
Wed Dec 10 01:46:01 CET 2008


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.



More information about the R-help mailing list