在 R 中,如何查看实现泛型方法的签名?

In R, how can I see the signatures for which a generic method is implemented?

R 中是否有一个函数可以找到给定泛型函数的所有已实现签名?

我正在寻找类似的东西:

findSignatures("myFunction")

[1] "character"

如果您只想查看签名,可以使用 showMethods 功能:

showMethods("myFunction")