Dear all,

After installing R 2.4.0, a definition of "[" for an S4 class has
stopped working as the default for drop in the generic, TRUE, appears to
override the default in the method

The method is defined for demonstration purposes as

setMethod("[", signature(x="FLQuant"),
        function(x, i="missing", j="missing", k="missing", l="missing",
                m="missing", ..., drop=FALSE) {

                print(drop)
        }
)

When called as

new('FLQuant')[1,]

drop is TRUE, instead of FALSE. Am I missing something? Has there been a
change in R 2.4.0 of relevance here? I could not find it in the NEWS
file.

Many thanks,


Iago Mosqueira

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to