Re: [Rd] model.matrix memory problem (PR#13838)

2009-07-17 Thread Duncan Murdoch
On 7/17/2009 1:15 PM, Olaf Mersmann wrote: Hi, Excerpts from Torsten.Hothorn's message of Thu Jul 16 17:20:10 +0200 2009: `model.matrix' might kill R with a segfault (on a illposed problem, but anyway): mydf <- as.data.frame(sapply(1:40, function(i) gl(2, 100))) f <- as.formula(paste("~ - 1 +

Re: [Rd] model.matrix memory problem (PR#13838)

2009-07-17 Thread Olaf Mersmann
Hi, Excerpts from Torsten.Hothorn's message of Thu Jul 16 17:20:10 +0200 2009: > `model.matrix' might kill R with a segfault (on a illposed problem, but > anyway): > > mydf <- as.data.frame(sapply(1:40, function(i) gl(2, 100))) > f <- as.formula(paste("~ - 1 + ", paste(names(mydf), collapse = ":

[Rd] model.matrix memory problem (PR#13838)

2009-07-16 Thread Torsten . Hothorn
Hi, `model.matrix' might kill R with a segfault (on a illposed problem, but anyway): mydf <- as.data.frame(sapply(1:40, function(i) gl(2, 100))) f <- as.formula(paste("~ - 1 + ", paste(names(mydf), collapse = ":"), sep = "")) X <- model.matrix(f, data = mydf) *** caught segfault *** address 0