[Rd] Unexpected behavior of identical() with language objects

Winston Chang winstonchang1 at gmail.com
Wed Oct 29 21:26:16 CET 2014


I ran into this and found the result very surprising:

identical( quote({ a }),  quote({ a }) )
# FALSE

It seems related to curly braces. For example, parens work fine:
identical( quote(( a )),  quote(( a )) )
# TRUE

Is this expected behavior? I can't seem to find anything in the help
for identical that relates to this.

-Winston



More information about the R-devel mailing list