[Rd] Bug in parse(text = <long polynom>) (PR#7022)

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jun 25 10:48:43 CEST 2004


On Fri, 25 Jun 2004 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"

FYI

	load(url("ftp://ftp.stat.math.ethz.ch/U/maechler/R/longpoly.rda"))

is a neater way to do this.  (Or use loadURL.)

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list