Re: [Rd] inconsistency in attaching attributes to NULL

2009-09-18 Thread cls59
William Dunlap wrote: > > In R-devel (svn 49628) and back to at least R 2.7.0 we get > inconsistent results when attempting to attach attributes to > a variable with the value NULL. > > If we use attributes<- it finishes but changes the value to list(). > >> a<-NULL >> attributes(a)<-

[Rd] inconsistency in attaching attributes to NULL

2009-09-18 Thread William Dunlap
In R-devel (svn 49628) and back to at least R 2.7.0 we get inconsistent results when attempting to attach attributes to a variable with the value NULL. If we use attributes<- it finishes but changes the value to list(). > a<-NULL > attributes(a)<-list(attr1="First attribute", attr2=2+2i)