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

Marc Schwartz MSchwartz at MedAnalytics.com
Fri Mar 11 04:00:54 CET 2005


On Thu, 2005-03-10 at 19:57 -0600, Deepayan Sarkar wrote:
> 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)?


No problem in "Version 2.0.1 Patched (2005-03-07)". I get \sum in both
places. I do not see anything in the NEWS file suggesting a bug fix for
this.

I just installed "Version 2.1.0 Under development (unstable)
(2005-03-11)" and do not see the problem there either.

Both are under FC3.

HTH,

Marc Schwartz



More information about the R-devel mailing list