[Rd] unexpected behaviour of expression(sum())

Deepayan Sarkar deepayan at stat.wisc.edu
Fri Mar 11 02:57:13 CET 2005


I'm seeing inconsistent symbols from the same expression with the 
following code:


expr = expression(sum(x, 1, n))
plot(1, main = expr, type = "n")
text(1, 1, expr)


Moreover, the inconsistency is reversed in r-devel compared to R 2.0.1. 
In particular, the main label shows a \bigoplus instead of \sum in 
r-devel, and the other way round in 2.0.1. demo(plotmath) shows \sum in 
both.

Can anyone confirm? Is this intended behaviour (though I can't see how)?

-Deepayan



More information about the R-devel mailing list