[Rd] Bug in parse(text = <long polynom>) (PR#7022)
Duncan Murdoch
dmurdoch at pair.com
Fri Jun 25 12:10:52 CEST 2004
On Fri, 25 Jun 2004 10:42:19 +0200 (CEST), maechler at stat.math.ethz.ch
wrote:
>>>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch>
>>>>>> on Fri, 25 Jun 2004 10:19:19 +0200 writes:
>
>>>>>> "PD" == Peter Dalgaard <p.dalgaard at biostat.ku.dk>
>>>>>> on 25 Jun 2004 09:32:48 +0200 writes:
>
> PD> But you're still requiring library(polynom) for
> PD> triggering the bug. If we are to be sure that it is not
> PD> a bug in that package but a bug in R, you need to
> PD> include the definition of at least polynomial() with the
> PD> instructions to reproduce the effect...
>
> MM> well, try this (without package polynom):
>
> >> parse(text="1 + x*(100 + x*(4950 + x*(161700 + x*(3921225
>....
>
>and then I had the full length 2404 string which---I had
>"known in advance" (Murphy's law)--- has been thrown up
>before it got back to R-devel, actually by my mailer already.
>
>Now this should be easier to pass through:
>
> tt <- tempfile()
> download.file("ftp://ftp.stat.math.ethz.ch/U/maechler/R/longpoly.rda", tt)
> load(tt)
> zh # look at the long "polygon string"
>
> parse(text=zh) ## seg.fault
I don't see any problems in 1.9.1 or R-patched on Windows:
> parse(text=zh)
expression(1 + x * (100 + x * (4950 + x * (161700 + x * (3921225 +
x * (75287520 + x * (1192052400 + x * (16007560800 + x *
(186087894300 + x * (1902231808400 + x * (17310309456440 +
x * (141629804643600 + x * (1050421051106700 + x *
(7110542499799200 + x * (44186942677323608 +
... etc
Duncan Murdoch
More information about the R-devel
mailing list