[Rd] R crashes for large formulas in lm() (PR#8180)
Barry Rowlingson
B.Rowlingson at lancaster.ac.uk
Wed Oct 5 14:25:27 CEST 2005
> set.seed(123)
> x1 <- runif(1000)
> x2 <- runif(1000)
> x3 <- runif(1000)
> x4 <- runif(1000)
> x5 <- runif(1000)
> x6 <- runif(1000)
> x7 <- runif(1000)
> x8 <- runif(1000)
> y <- rnorm(1000)
> fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2)
For me (with 9 variables) this crashes in model.matrix:
> f1=y~(x1*x2*x3*x4*x5*x6*x7*x8*x9)^2
> model.matrix(f1)
Segmentation fault
I guess someone with a debug-compiled R can get a bit further...
Baz
More information about the R-devel
mailing list