On 11-04-09 9:43 PM, Yihui Xie wrote:
Hi,
I observed a slight problem in deparse(): it will add spaces around
most operators except /. I wonder if this is easy to fix. I know this
is quite trivial, but I will appreciate if / is not treated as an
exception. Examples:
It's easy to change: take
Thanks for pointing out the direction. Since this is unlikely to
change in base R, is it possible to change from an add-on package?
I think it is reasonable to eliminate spaces around ^ and :, but I
don't understand why /, %% and %/% should be different with other
arithmetic operators like +, -
On 10/04/2011 2:08 PM, Yihui Xie wrote:
Thanks for pointing out the direction. Since this is unlikely to
change in base R, is it possible to change from an add-on package?
Of course. Just write your own deparse function. You can start with
the code from the standard one, and make any
Hi,
I observed a slight problem in deparse(): it will add spaces around
most operators except /. I wonder if this is easy to fix. I know this
is quite trivial, but I will appreciate if / is not treated as an
exception. Examples:
deparse(expression(1/1))
[1] expression(1/1)