Skip to content
Prev 13329 / 63424 Next

Disallowing a < b < c in R 2.0.0

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.

        -p