Re: [Rd] deparse with parentheses for SUBSET

2016-01-05 Thread Radford Neal
> maybe there?s a reason for it, but the discrepancy between the > handling of `[` and `$` in deparsing seems odd to me: > > > substitute(a[1], list(a = quote(x * y))) > x * y[1] > > > substitute(a$b, list(a = quote(x * y))) > (x * y)$b > > The former is still executed in the right order (`*` firs

Re: [Rd] deparse with parentheses for SUBSET

2016-01-04 Thread Duncan Murdoch
On 04/01/2016 11:09 AM, Lukas Stadler wrote: Hi, maybe there’s a reason for it, but the discrepancy between the handling of `[` and `$` in deparsing seems odd to me: > substitute(a[1], list(a = quote(x * y))) x * y[1] > substitute(a$b, list(a = quote(x * y))) (x * y)$b The former is still exec

[Rd] deparse with parentheses for SUBSET

2016-01-04 Thread Lukas Stadler
Hi, maybe there’s a reason for it, but the discrepancy between the handling of `[` and `$` in deparsing seems odd to me: > substitute(a[1], list(a = quote(x * y))) x * y[1] > substitute(a$b, list(a = quote(x * y))) (x * y)$b The former is still executed in the right order (`*` first, then `[`),