[R] readRDS problem

Rolf Turner r.turner at auckland.ac.nz
Wed Feb 24 21:32:32 CET 2016


On 25/02/16 00:11, Erich Neuwirth wrote:
> ?data
> will show you that data is a reserved word!

That is simply not true.  There is no mention in help for data of "data" 
being a reserved word.

Moreover, if "data" *were* a reserved word " <- " wouldn't work either.

Compare:

     data <- 42 # No problema.
and
     TRUE <- 42 # Throws an error; "TRUE" really *is* a reserved word.

The real explanation is more subtle; it involves "locking" and the 
rather intricate behaviour of "<<-", which I do no claim to understand.

The best advice is: DON'T USE "<<-" !!!

See fortune("dumb down").

cheers,

Rolf Turner

-- 
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276



More information about the R-help mailing list