[Rd] Is importMethodsFrom actually needed?

Karl Millar kmillar at google.com
Thu Nov 3 00:26:40 CET 2016

IIUC, loading a namespace automatically registers all the exported
methods as long as the generic can be found when the namespace gets
loaded.  Generics can be exported and imported as regular functions.

In that case, code in a package should be able to simply import the
generic and the methods will automatically work correctly without any
need for importMethodsFrom.

Is there something that I'm missing here?  What breaks if you don't
explicitly import methods?



More information about the R-devel mailing list