Re: [R] Question on codetools and parse trees

2010-01-29 Thread Duncan Murdoch
On 29/01/2010 2:03 PM, Saptarshi Guha wrote: Dear R Users, Using codetools I obtained the text representation of the parse tree for this snippet z=quote({x[1]<-2}) showTree(z) > ("{" (<- ([ x 1) 2)) (A) If I understand correctly, x[1]<-2 ought to be "[<-"(x,1,2), so shouldn't i see ("{"

[R] Question on codetools and parse trees

2010-01-29 Thread Saptarshi Guha
Dear R Users, Using codetools I obtained the text representation of the parse tree for this snippet z=quote({x[1]<-2}) showTree(z) > ("{" (<- ([ x 1) 2)) (A) If I understand correctly, x[1]<-2 ought to be "[<-"(x,1,2), so shouldn't i see ("{" ( [<- x 1 2 ) ) If indeed the parse tree in