From ripley at stats.ox.ac.uk  Fri Jun 25 10:48:43 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri Jun 25 10:48:46 2004
Subject: [Rd] Bug in parse(text = <long polynom>) (PR#7022)
In-Reply-To: <20040625084219.57E7D108CF@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.44.0406250946160.32429-100000@gannet.stats>

On Fri, 25 Jun 2004 maechler@stat.math.ethz.ch wrote:

> >>>>> "MM" == Martin Maechler <maechler@stat.math.ethz.ch>
> >>>>>     on Fri, 25 Jun 2004 10:19:19 +0200 writes:
> 
> >>>>> "PD" == Peter Dalgaard <p.dalgaard@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@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


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