[R] Trouble with expression() in R-win 2.0.1

From: Ronnen Levinson <RML27_at_cornell.edu>
Date: Sat 26 Mar 2005 - 13:26:31 EST

   Hi.
   The following statement works fine in R-win 1.8.0, but yields a syntax    error in R-win 2.0.1 (and possibly in other versions after 1.8.0):

     plot(c(1,2),main=expression(a==b==c))

   I note that the following workaround executes successfully in both    versions of R...

     plot(c(1,2),main=expression(a*"="*b*"="*c))

   ...but I don't really understand why the first version works in 1.8.0    and not in 2.0.1.
   Yours truly,
   Ronnen.
   P.S. E-mailed CCs of posted replies appreciated.
--

Ronnen Levinson, Ph.D.            \/      [1]RML27@cornell.edu
scientist                         ||      [2]http://ronnen.com
Lawrence Berkeley National Lab    /\      fax 425.955.1992

======================================

Men in colored shirts and seersucker suits, women in slacks and midriff dresses  displaying various grades of abdomen, moved in and out of California Spanish s hops and office buildings. Nobody looked at the mountains standing above the to wn, but the mountains were there, making them all look silly.

References

  1. mailto:RML27@cornell.edu
  2. http://ronnen.com/
    R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Mar 26 13:36:24 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:56 EST