Calls the given generic with the given arguments, using the method whose signature matches the arguments.
Details
Uses methods::selectMethod()
to find the matching method. In theory,
this is at best wholly redundant with what standard S4 generics already
do by themselves. However, the generics dispatch for S4 seems (at least
currently) broken at least if the first argument in the signature is
a class that name-clashes with a class defined in another package. In
that case, whether the standard dispatch works correctly or not can depend
on search()
order, and can change within a session
depending on the order in which packages are loaded.