[Rd] Default argument value for "["
Iago Mosqueira
imosqueira at suk.azti.es
Wed Oct 4 12:31:41 CEST 2006
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
More information about the R-devel
mailing list