Re: [Rd] vector labels are not permuted properly in a call to sort() (R 2.1)

2005-10-05 Thread Martin Maechler
> "AndyL" == Liaw, Andy <[EMAIL PROTECTED]> > on Tue, 4 Oct 2005 13:51:11 -0400 writes: AndyL> The `problem' is that sort() does not doing anything special when given AndyL> a matrix: it only treat it as a vector. After sorting, it copies AndyL> attributes of the original

[Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread hallgeir . grinde
Full_Name: Hallgeir Grinde Version: 2.1.1 OS: Windows XP Submission from: (NULL) (144.127.1.1) While using lm(y~(x*z*c*...*v)^2) R crashes/closes if the numbers of variables are at least 8. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mai

[Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Ken Knoblauch
Have you considered that 8 variables will give you sum(choose(8,1:8)) [1] 255 terms. That's a suspicious number. Have you checked whether there is a limit in the code? - Full_Name: Hallgeir Grinde Version: 2.1.1 OS: Windows XP Submission from: (NULL) (144.127.1.1) While

[Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Ken Knoblauch
Oops, sorry. I didn't notice the ^2... Nevermind. Have you considered that 8 variables will give you sum(choose(8,1:8)) [1] 255 terms. That's a suspicious number. Have you checked whether there is a limit in the code? - Full_Name: Hallgeir Grinde Versio

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Prof Brian Ripley
On Wed, 5 Oct 2005 [EMAIL PROTECTED] wrote: > Full_Name: Hallgeir Grinde > Version: 2.1.1 > OS: Windows XP > Submission from: (NULL) (144.127.1.1) > > > While using lm(y~(x*z*c*...*v)^2) R crashes/closes if the numbers of variables > are at least 8. OK, let's try to reproduce that: > x1 <- runif

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Peter Dalgaard
"Ken Knoblauch" <[EMAIL PROTECTED]> writes: > Oops, sorry. I didn't notice the ^2... > Nevermind. You could still have a point, but with 255^2 terms (all but 255 of which will be redundant since x^2 == x:x == x in modeling language). Presumably someone thought that noone in their right mind woul

Re: [Rd] Fwd: R and Java

2005-10-05 Thread Laurent Jourdren
> I am a grad student and am working on a project where i need to integrate > java and R. I have a front end in java and i need to call R functions and > be able to dispaly the plots and graphs produced by R on my java front end. > I came across some tools like SJava and rserve...but am not sure wh

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Barry Rowlingson
Prof Brian Ripley wrote: > OK, let's try to reproduce that: > > >>x1 <- runif(1000) ... >>y <- rnorm(1000) >>fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2) > > > No crash, a quite reasonable fit. Add one more: > x9 <- runif(1000) works with 8: > fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2)

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread B . Rowlingson
Prof Brian Ripley wrote: > OK, let's try to reproduce that: > > >>x1 <- runif(1000) ... >>y <- rnorm(1000) >>fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2) > > > No crash, a quite reasonable fit. Add one more: > x9 <- runif(1000) works with 8: > fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2)

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread ligges
Prof Brian Ripley wrote: > On Wed, 5 Oct 2005 [EMAIL PROTECTED] wrote: > > >>Full_Name: Hallgeir Grinde >>Version: 2.1.1 >>OS: Windows XP >>Submission from: (NULL) (144.127.1.1) >> >> >>While using lm(y~(x*z*c*...*v)^2) R crashes/closes if the numbers of variables >>are at least 8. > > > OK, l

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Barry Rowlingson
> 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:

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread MSchwartz
On Wed, 2005-10-05 at 14:12 +0200, [EMAIL PROTECTED] wrote: > Prof Brian Ripley wrote: > > > On Wed, 5 Oct 2005 [EMAIL PROTECTED] wrote: > > > > > >>Full_Name: Hallgeir Grinde > >>Version: 2.1.1 > >>OS: Windows XP > >>Submission from: (NULL) (144.127.1.1) > >> > >> > >>While using lm(y~(x*z*c*..

[Rd] Ad: Re: R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Hallgeir . Grinde
R closes down while running the code described below. How i can get it to crash on your PC, i do not know... -Hallgeir Grinde > > While using lm(y~(x*z*c*...*v)^2) R crashes/closes if the numbers of variables > are at least 8. OK, let's try to reproduce that: > x1 <- runif(1000) > x2 <- runi

Re: [Rd] Fwd: R and Java

2005-10-05 Thread Marc Schwartz
On Wed, 2005-10-05 at 14:08 +0200, Laurent Jourdren wrote: > > I am a grad student and am working on a project where i need to integrate > > java and R. I have a front end in java and i need to call R functions and > > be able to dispaly the plots and graphs produced by R on my java front end. > >

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Prof Brian Ripley
This is almost certainly C stack overflow, which will be _very_ OS-specific. I can run this 9-var example in Linux with a stacksize of 30Mb, but not the default 10Mb. I tried it with the default stack under valgrind, and it works. Windows versions of R have I believe a stack of 8Mb, and so I su

[Rd] Ad: Re: R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Hallgeir . Grinde
Dette er en melding med flere deler i MIME-format. --=_alternative 004613C000257091_= Content-Type: text/plain; charset="US-ASCII" And some more informastion I forgot. R does not crash if I write out the formula: set.seed(123) x1 <- runif(1000) x2 <- runif(1000) x3 <- runif(1000) x4 <- runif(1000

[Rd] Problems with autoconf example from r-ext.

2005-10-05 Thread nwew
Dear R-developers, I am trying to reproduce the autoconf.ac example from R-ext and fail. My autoconf file looks like this [autoconf.ac] # original by Friedrich Leisch, much changed by BDR AC_INIT([SBMLodeSolveR]) dnl Select an optional include path, from a configure option dnl or from an envir

Re: [Rd] Ad: Re: R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread ripley
On Wed, 5 Oct 2005 [EMAIL PROTECTED] wrote: > And some more informastion I forgot. > R does not crash if I write out the formula: > > 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 <- ru

Re: [Rd] Ad: Re: R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Dette er en melding med flere deler i MIME-format. > --=_alternative 004613C000257091_= > Content-Type: text/plain; charset="US-ASCII" > > And some more informastion I forgot. > R does not crash if I write out the formula: > > set.seed(123) > x1 <- runif(1000) > x2 <-

Re: [Rd] Ad: Re: R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Liaw, Andy
> From: Peter Dalgaard > > [EMAIL PROTECTED] writes: > > > Dette er en melding med flere deler i MIME-format. > > --=_alternative 004613C000257091_= > > Content-Type: text/plain; charset="US-ASCII" > > > > And some more informastion I forgot. > > R does not crash if I write out the formula: > >

Re: [Rd] vector labels are not permuted properly in a call to sort() (R 2.1)

2005-10-05 Thread David James
Martin Maechler wrote: > > "AndyL" == Liaw, Andy <[EMAIL PROTECTED]> > > on Tue, 4 Oct 2005 13:51:11 -0400 writes: > > AndyL> The `problem' is that sort() does not doing anything special when > given > AndyL> a matrix: it only treat it as a vector. After sorting, it copies >

Re: [Rd] Problems with autoconf example from r-ext.

2005-10-05 Thread Prof Brian Ripley
The current R-exts.texi has AC_INIT([RODBC], 1.1.4) dnl package name, version and that is crucially different from your example. Autoconf 2.59 has a barely documented back-compatibility mode than is invoked for AC_INIT with just one argument. since in has a pare On Wed, 5 Oct 2005, nwew wro

[Rd] Ad: Re: Ad: Re: R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Hallgeir . Grinde
Dette er en melding med flere deler i MIME-format. --=_alternative 004C4E4A00257091_= Content-Type: text/plain; charset="US-ASCII" Yes. so (x1*x2*x3*x4*x5*x6*x7*x8)^2 = (x1+x2+x3+x4+x5+x6+x7+x8)^8 ? and there is a difference in (x1*x2*x3*x4*x5*x6*x7*x8)^2 and (x1*x2*x3*x4*x5*x6*x7*x8) althoug the

Re: [Rd] Ad: Re: Ad: Re: R crashes for large formulas in lm() (PR#8181)

2005-10-05 Thread ripley
On Wed, 5 Oct 2005 [EMAIL PROTECTED] wrote: > Yes. > so (x1*x2*x3*x4*x5*x6*x7*x8)^2 = (x1+x2+x3+x4+x5+x6+x7+x8)^8 ? Yes in the sense that the simplified formula given by terms() is the same. > and there is a difference in > (x1*x2*x3*x4*x5*x6*x7*x8)^2 > and > (x1*x2*x3*x4*x5*x6*x7*x8) > althoug

Re: [Rd] vector labels are not permuted properly in a call to sort() (R 2.1)

2005-10-05 Thread Prof Brian Ripley
The main problem is that R is inconsistent here. There are lots of branches through the sort() code. Greg showed one. Here are four more > sort(y, method="quick") [,1] [,2] A15 B26 C37 D48 > names(y) <- letters[1:8] > sort(y) h g f e d c b a 1 2 3 4 5 6 7 8 >

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Ei-ji Nakama
Hi, Wed, 5 Oct 2005 13:38:12 +0100 (BST) Prof Brian Ripley <[EMAIL PROTECTED]> wrote. > This is almost certainly C stack overflow, which will be _very_ > OS-specific. I can run this 9-var example in Linux with a stacksize of > 30Mb, but not the default 10Mb. I tried it with the default stack und

Re: [Rd] R crashes for large formulas in lm() (PR#8180)

2005-10-05 Thread Prof Brian Ripley
On Thu, 6 Oct 2005, Ei-ji Nakama wrote: > Hi, > > Wed, 5 Oct 2005 13:38:12 +0100 (BST) > Prof Brian Ripley <[EMAIL PROTECTED]> wrote. >> This is almost certainly C stack overflow, which will be _very_ >> OS-specific. I can run this 9-var example in Linux with a stacksize of >> 30Mb, but not the de

[Rd] Dont loose your chance list

2005-10-05 Thread Kara Floyd
Sehr geehrte Frau/Herr, made Suchen Sie eine Arbeit? your Eine der besten Finanzgesellschaften in Osteuropa freut sich sehr darauf, Ihnen eine ausgezeichnete Arbeit vorzuschlagen, die wirklich ein gro?es Einkommen erm?glicht!! Sie sollen nichts investieren oder keine Waren kaufen, um bei uns zu

[Rd] how do I write Rd file for this?

2005-10-05 Thread Liaw, Andy
Dear R-devel, I'm working on Prof. Loader's new version of locfit to try to get it pass R CMD check. I'm almost there, but I have a problem with some Rd files that I hope some one can help me resolve. Here's an example: In the package there's a function called locfit.censor(). This function ca

Re: [Rd] how do I write Rd file for this?

2005-10-05 Thread Prof Brian Ripley
On Wed, 5 Oct 2005, Liaw, Andy wrote: > Dear R-devel, > > I'm working on Prof. Loader's new version of locfit to try to get it > pass R CMD check. I'm almost there, but I have a problem with some Rd > files that I hope some one can help me resolve. Here's an example: > > In the package there's a

Re: [Rd] R and Java

2005-10-05 Thread Paul Roebuck
On Tue, 4 Oct 2005, Vasundhara Akkineni wrote: > I am a grad student and am working on a project where i > need to integrate java and R. I have a front end in java > and i need to call R functions and be able to dispaly the > plots and graphs produced by R on my java front end. I > came across som

Re: [Rd] Fwd: R and Java

2005-10-05 Thread Duncan Temple Lang
Laurent Jourdren wrote: >>I am a grad student and am working on a project where i need to integrate >>java and R. I have a front end in java and i need to call R functions and >>be able to dispaly the plots and graphs produced by R on my java front end. >>I came across some tools like SJava and rse

Re: [Rd] Problems with autoconf example from r-ext.

2005-10-05 Thread dhinds
Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > The current R-exts.texi has > AC_INIT([RODBC], 1.1.4) dnl package name, version > and that is crucially different from your example. Autoconf 2.59 has a > barely documented back-compatibility mode than is invoked for AC_INIT with > just one argume

Re: [Rd] bug found in predict.locfit in locfit package ( PR#8057)

2005-10-05 Thread Liaw, Andy
Apologies for the coming to this late... 1. By now I hope Somkiat has realized that R-bugs is not the place to report problems in contributed packages. Please direct such reports to the package maintainer. 2. This is really user error. predict() expect the newdata to be a data frame containing