From xie at yihui.name  Fri Jul  5 09:31:58 2013
From: xie at yihui.name (Yihui Xie)
Date: Fri, 5 Jul 2013 00:31:58 -0700
Subject: [Rd] should the text for RIGHT_ASSIGN be -> in getParseData()?
Message-ID: <CANROs4eVNfPjs_D5wb4Hqgy3Axb=88PZ_eGHVAFhTbi-3uT3Tw@mail.gmail.com>

Hi,

The text column for '->' becomes '<-' in the data frame returned by
getParseData():

> getParseData(parse(text='1->x'))
  line1 col1 line2 col2 id parent        token terminal text
7     1    1     1    4  7      0         expr    FALSE
1     1    1     1    1  1      2    NUM_CONST     TRUE    1
2     1    1     1    1  2      7         expr    FALSE
3     1    2     1    3  3      7 RIGHT_ASSIGN     TRUE   <-
4     1    4     1    4  4      6       SYMBOL     TRUE    x
6     1    4     1    4  6      7         expr    FALSE

Is that expected?

> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C                 LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 206-667-4385 Web: http://yihui.name
Fred Hutchinson Cancer Research Center, Seattle



[Rd] should the text for RIGHT_ASSIGN be -> in getParseData()?
Yihui Xie