[R] Stack overflow error while creating package

2005-12-06 Thread manohar
Hi all, I am trying to build a package in R (ver 2.1.0, on a PC). I am able to run package.skeleton successfully and populate the different environments. However, when I attempt to invoke the build (R CMD BUILD), i get an error which says something like protect(): Stack Overflow I would

Re: [R] Stack overflow error while creating package

2005-12-06 Thread Martin Maechler
manohar == manohar [EMAIL PROTECTED] on Tue, 6 Dec 2005 06:39:27 -0800 (PST) writes: manohar Hi all, manohar I am trying to build a package in R (ver 2.1.0, on a manohar PC). which I interpret that you are running Windows, right? manohar I am able to run package.skeleton

Re: [R] Stack overflow error while creating package

2005-12-06 Thread Prof Brian Ripley
I don't think this is C stack overflow. His R is so old the message means `protection stack overflow'. The first action (as described in the posting guide) is indeed to update R, though. On Tue, 6 Dec 2005, Martin Maechler wrote: manohar == manohar [EMAIL PROTECTED] on Tue, 6 Dec 2005

Re: [R] stack overflow using step()

2005-10-17 Thread Prof Brian Ripley
Please note the message is about the protect stack, and not the `stack'. The message you quote did not come from a current version of R (and you have not told us what version you are using, as asked in the posting guide). On Mon, 17 Oct 2005 [EMAIL PROTECTED] wrote: Hi, I'm using step() for

[R] stack overflow using step()

2005-10-16 Thread stich
Hi, I'm using step() for forward regression with 680 main effects and the correspomding 230860 interactions. However, the calculation is stopped with the message: Error: protect(): stack overflow How can I specify the maximum size of the pointer protection stack when running R not from command

RE: [R] stack overflow and predict()

2003-11-08 Thread Ji Zhu
Hi Andy, It works perfectly. Thank you so much!! Cheers, Ji Try something like this (suppose x is the matrix of predictors in the training set, and xtest is the same for the test set): my.rp - rpart(y ~ x, ...) test.pred - predict(my.rp, newdata=data.frame(x=I(xtest))) Make sure the

[R] stack overflow and predict()

2003-11-07 Thread Ji Zhu
Dear R users, I'm trying to use rpart() to build a classification tree on a big dataset. The number of samples is n=100 and the number of variables is p=1. At first I stored all the data in a data.frame and got a stack overflow error; then I changed the data into a matrix and the problem

RE: [R] stack overflow and predict()

2003-11-07 Thread Liaw, Andy
Try something like this (suppose x is the matrix of predictors in the training set, and xtest is the same for the test set): my.rp - rpart(y ~ x, ...) test.pred - predict(my.rp, newdata=data.frame(x=I(xtest))) Make sure the name of the variable in the data frame given to newdata matches the name

Re: [R] stack overflow and predict()

2003-11-07 Thread Prof Brian Ripley
That's not a sensible thing to do. Supply predict.rpart with a data frame that contains just the variables rpart selected. R does have limits, and attempting to use 10,000 variables is hitting them, But surely any statistician is aware of the dangers of selecting from 1 variables on just

Re: [R] stack overflow

2003-09-05 Thread Thomas W Blackwell
Bill - Here's what I would do, starting after your display of anovaresults[[1]]. temp.1 - unlist(lapply(anovaresults, function(x) { x[Pr(F)][1:3],] })) temp.2 - matrix(temp.1, length(anovaresults), 3, byrow=T) dimnames(temp.2) - list(names(anovaresults),

Re: [R] stack overflow

2003-09-05 Thread Peter Dalgaard BSA
William Noble [EMAIL PROTECTED] writes: Hello, I am trying to do an ANOVA on a microarray data set consisting of 22690 elements. The ANOVA is fine, but when I try to put the data in a frame in order to exporting it, I get a stack overflow. I have found documentation on dynamic memory in