[R] Lexical scoping is not what I expect

Rolf Turner rolf.turner at xtra.co.nz
Sat Jun 29 03:30:44 CEST 2013


On 29/06/13 02:54, John Fox wrote:
> Dear Duncan and Steve,
>
> Since Steve's example raises it, I've never understood why it's legal to
> change the built-in global "constants" in R, including T and F. That just
> seems to me to set a trap for users. Why not treat these as reserved
> symbols, like TRUE, Inf, etc.?

I rather enjoy being able to set

     pi <- 3

:-)

     cheers,

         Rolf Turner



More information about the R-help mailing list