Skip to content
Prev 5610 / 12125 Next

[R-pkg-devel] Two packages with the same generic function

On 22/06/2020 1:00 p.m., Viechtbauer, Wolfgang (SP) wrote:
Wouldn't the user have got a warning at this point about pkgB::foo 
masking pkgA::foo?
Can't one of the packages import the generic from the other package, and 
then declare the method as a method of that other generic?  That seems 
like the only thing that would make sense.  There's no reason to believe 
that pkgA::foo has anything whatsoever to do with pkgB::foo without this.

Duncan Murdoch