Skip to content
Prev 46468 / 63424 Next

Correct NAMESPACE approach when writing an S3 method for a generic in another package

I think rgl should be in Depends.  You are providing a method for a
generic function from another package. In order to use your method, you
want the user to be able to call the generic function without scoping
(i.e. without calling rgl::plot3d), so the generic should be on the
search path, so the package that provides it should be listed in Depends
in the NAMESPACE file.

Martyn
On Fri, 2013-08-23 at 22:01 -0600, Gavin Simpson wrote: