Re: [Rd] Changes to parser in R-devel

2012-07-20 Thread Yihui Xie
Great. I just tested it and did not find any more problems. Thanks! Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, Jul 20, 2012 at 12:22 PM, Duncan Murdoch wrote: > > As far as I know,

Re: [Rd] Changes to parser in R-devel

2012-07-20 Thread Duncan Murdoch
On 19/07/2012 6:50 PM, Duncan Murdoch wrote: On 12-07-19 4:41 PM, Yihui Xie wrote: > I'm not sure if there is a bug somewhere; see this example: There's definitely a bug in the handling of empty lists, such as the empty list of commands in your first example and the empty list of arguments in yo

Re: [Rd] Changes to parser in R-devel

2012-07-19 Thread Duncan Murdoch
On 12-07-19 4:41 PM, Yihui Xie wrote: I'm not sure if there is a bug somewhere; see this example: There's definitely a bug in the handling of empty lists, such as the empty list of commands in your first example and the empty list of arguments in your second. There's a partial workaround cur

Re: [Rd] Changes to parser in R-devel

2012-07-19 Thread Yihui Xie
I'm not sure if there is a bug somewhere; see this example: getParseData(parse(text='function(x){}')) line1 col1 line2 col2 id parent token terminal text 1 11 18 1 11 FUNCTION TRUE function 2 19 19 2 11'(' TRUE

[Rd] Changes to parser in R-devel

2012-07-18 Thread Duncan Murdoch
I have just committed (in r59883) some changes to the R parser based on Romain Francois' parser package. Packages that made use of parser will hopefully find that the information in base R gives them what they need to work with, but the data is not identical to what parser recorded (since it wa