I'm not really sure how verboten it is to have methods that omit "...". The
code seems to be instrumented to handle that case.
The catch is that it does so by inserting a call to .local where .local is the
method function, e.g. if you insert a browser() call at the start of the
method, you'll
Fascinating. Or, well, not.
Failing to use a method signature that is compatible with the generic is a
no-no. So your bug seems to me to be outside the bounds of how R is supposed to
be used. So don't do that.
On April 17, 2024 4:25:38 PM PDT, "Boylan, Ross via R-help"
wrote:
>When a generic
When a generic (S4) has an argument with a default followed by ..., missing()
doesn't seem to work if the method omits the ...
Sample---
foo <- function(x, y=0, ...){
"you are very generic"
}
# no ... in function arguments
setMethod("foo", signatu
3 matches
Mail list logo