From thomas@biostat.washington.edu  Mon May  3 18:55:07 1999
From: thomas@biostat.washington.edu (thomas@biostat.washington.edu)
Date: Mon, 3 May 1999 19:55:07 +0200 (MET DST)
Subject: parse error in terms (PR#184)
Message-ID: <199905031755.TAA26383@pubhealth.ku.dk>

On Mon, 3 May 1999 jlindsey@alpha.luc.ac.be wrote:

> If I use (0.64.0 in intel RH5.2)
> 
> abcdefg <- list()
> abcdefg$abcdefg$abcdefg <- matrix(rpois(20,5),ncol=5)
> terms(~(abcdefg$abcdefg$abcdefg[,1]==1)|(abcdefg$abcdefg$abcdefg[,3]==1)|
> 	(abcdefg$abcdefg$abcdefg[,5]==1))
> 
> I get a parse error. This seems to be connected to the length of the
> names or of the expression, as I do not get an error if the list and
> its elements are called a: a$a$a

This is fixed for 0.64.1.  terms.formula() used deparse with a line length
 of 60 characters. It now uses the maximum allowable length (currently 500
characters).

The survival5 test suite comes with a real example of why 60 characters is
not long enough.

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


parse error in terms (PR#184)
thomas@biostat.washington.edu