Commands \leq, \geq, and \ne (synonym: \neq) are protected by surrounding them with {phantom() * operator * phantom() } to avoid errors when translating into a plotmath expression.
This is necessary because a plotmath expression like a < b < c is not a valid R expression, and will cause a parse error:
Error: unexpected '<' in "a < b <"
The workaround applied currently is to surround the operator in {phantom() * operator * phantom()}.
In a follow-up release, I should devise a better solution.
Fixes #38
Commands
\leq
,\geq
, and\ne
(synonym:\neq
) are protected by surrounding them with{phantom() * operator * phantom() }
to avoid errors when translating into a plotmath expression.This is necessary because a plotmath expression like
a < b < c
is not a valid R expression, and will cause a parse error:The workaround applied currently is to surround the operator in
{phantom() * operator * phantom()}
.In a follow-up release, I should devise a better solution.