[Rd] Syntactically valid names
Hadley Wickham
hadley at rice.edu
Wed Jul 6 14:58:02 CEST 2011
> That's two different issues:
>
>> y <- list()
>> y$... <- 2
>> y$..2 <- 3
>> y$break <- 4
> Error: unexpected 'break' in "y$break"
>
> Notice that there is nothing _syntactically_ wrong with ... & friends as names:
>
>> quote(...<-4)
> ... <- 4
>
> It's the _evaluator_ that throws the error because the ...-name has a special interpretation.
Oh good point. Thanks for the clarification.
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-devel
mailing list