Bug 16154 - angleleft and angleright not available in group() and bgroup()
Summary: angleleft and angleright not available in group() and bgroup()
Alias: None
Product: R
Classification: Unclassified
Component: Misc (show other bugs)
Version: R 3.1.2
Hardware: All All
: P5 enhancement
Assignee: R-core
Depends on:
Reported: 2015-01-13 15:47 UTC by Philipp Angerer
Modified: 2015-01-16 13:14 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Angerer 2015-01-13 15:47:39 UTC
when i use a plot with xlab=expression(infinity), it shows ∞, but angleleft stays ascii.

using expression(bgroup(angleleft, x, angleright)) says “invalid group delimiter”
Comment 1 Brian Ripley 2015-01-16 10:15:07 UTC
And the bug is?

Where is the direct use of angleleft/right documented? 
How to use them is an example in ?plotmath.
Comment 2 Philipp Angerer 2015-01-16 12:14:57 UTC
i filed this as feature request/enhancement, not bug.

and the feature request is that the smbol font already contains the angled brackets, so i’d like to use them. they are just not hardcoded like rceil and friends: https://github.com/lgautier/R-3-0-branch-alt/blob/master/src/main/plotmath.c#L1930

also, the only special group delimiters that are documented (as example) are lceil and rceil, so it would also be useful to actually document which group delimiters are valid:

"(" ")" "[" "]" "{" "}" "|" "||" "." "" lfloor rfloor lceil rceil

hopefully soon langle and rangle or similar, and the unicode versions of floor, ceil and angled brackets.
Comment 3 Duncan Murdoch 2015-01-16 12:29:37 UTC
It's documented (where Prof. Ripley suggested you look) that these are rightangle and leftangle.
Comment 4 Philipp Angerer 2015-01-16 13:12:26 UTC
Whoops, title was wrong.
Comment 5 Philipp Angerer 2015-01-16 13:14:08 UTC
also plot(0, xlab=expression(leftangle)) still shows the text, not the symbol