Skip to content
Prev 42845 / 63424 Next

Substitute adds id attribute?

On Mar 20, 2012, at 22:31 , Hadley Wickham wrote:

            
Well, yes; you can get there more quickly as follows:
foo
attr(,"id")
[1] 7913
foo
attr(,"id")
[1] 7913

I.e. if you ever put an attribute on a symbol, it stays there "forever". The fix is probably to forbid setting attributes on symbols (as we already do for environments and NULL) but I bet that breaks something...