Skip to content
Prev 5631 / 12125 Next

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

Still, if pkgA imports the generic from pkgB, then installing pkgA installs pkgB and all of its dependencies (Depends and Imports). Which of course makes sense (as otherwise pkgB cannot be installed). But all of this just for importing

foo <- function(x, ...)
   UseMethod("foo")

from pkgB.

Best,
Wolfgang