Friday, February 26, 2010

R LOL

R protects the objects "TRUE" and "FALSE" so this fails:

TRUE <- FALSE
The short forms "T" and "F" are defined by default, but they are not protected, so this works:
T <- FALSE
Then we can ask:
isTRUE(T)

Which turns out to return FALSE. I'm sure there is some legacy code which relies on this behavior so we can't change it.

We need an R-3.0