[Rd] R-lang edit: deparse(1:2) is no longer a good example of the R parser's non-invertibility
Duncan Murdoch
murdoch.duncan at gmail.com
Mon Feb 4 18:36:04 CET 2013
On 04/02/2013 12:20 PM, Josh O'Brien wrote:
> Hello,
>
> Apparently thanks to improvements to the R parser, this example from
> section 6.1 of the R Language Definition no longer holds.
>
> > deparse(quote(c(1, 2)))
> [1] "c(1, 2)"
> > deparse(1:2)
> [1] "c(1, 2)"
>
>
Thanks, I'll replace that example with this one:
> str(quote(c(1,2)))
language c(1, 2)
> str(c(1,2))
num [1:2] 1 2
> deparse(quote(c(1,2)))
[1] "c(1, 2)"
> deparse(c(1,2))
[1] "c(1, 2)"
Duncan Murdoch
More information about the R-devel
mailing list