search for: set_s4_object

Displaying 1 result from an estimated 1 matches for "set_s4_object".

2007 Oct 07
1
R 2.6.0 S4 data breakage, R _data_class(), class<-, etc.
...could fix all of them with just 'a <- asS4(a)' and save() (they are relatively simple objects just missing the S4 object bit flag) b) I am surprised one of them were actually saved from 2.5 - our buggy code no doubt, see below. We never noticed we didn't do SET_S4_OBJECT() in our C code nor asS4() in our R code until this week. Obviously we were mistakenly relying on the S4 method dispatch on S3 objects, which were withdrawn in 2.6.0... 2) I am surprised that 'class(a)' can read S4 class names, but 'class(a)<-' does not set the S4 object bit....