[Rd] Disallowing a < b < c in R 2.0.0

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 13 Aug 2004 - 00:05:47 EST

We're making a change to R's syntax for the 2.0 series. The change is to disallow associative usage of relational operators (since, e.g., a < b < c does not mean what some users think it does.) There are legitimate uses, but they are quite rare. Further, they might be considered questionable programming style and issues are always fixable by inserting parentheses. Use braces in plotmath, e.g. text(0,0,quote({a<b}<c)).

A not-quite exhaustive check found only 4 CRAN packages containing this kind of construct and none in Bioconductor. To find problems in your own code, probably the easiest thing is to run it with a snapshot version of R, when it hits the CRAN mirrors in a few days.


   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

R-devel@stat.math.ethz.ch mailing list
Received on Fri Aug 13 00:12:42 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:05 EST