> methods::isGeneric(fdef = length)
Error in methods::isGeneric(fdef = length) :
argument "f" is missing, with no default
though it will work if you pass the function name instead:
methods::isGeneric(f = "length")
[1] TRUE
Gabe Becker (@gmbecker) raised this in Bug 18639 with the outline of a fix and R Core member Martin Maechler gave some feedback. This issue is to work with Gabe on developing and testing the patch.
For functions outside of the base package,
isGeneric()
works when the function is passed to thefdef
argumentThis doesn't work for functions in base:
though it will work if you pass the function name instead:
Gabe Becker (@gmbecker) raised this in Bug 18639 with the outline of a fix and R Core member Martin Maechler gave some feedback. This issue is to work with Gabe on developing and testing the patch.