[Rd] Overloading methods in R
Jeff Gentry
jgentry at jimmy.harvard.edu
Thu Apr 21 21:37:12 CEST 2005
On Thu, 21 Apr 2005, Henrik Bengtsson wrote:
> > But what is wrong with:
> > setGeneric("testFun", function(object, ...))
> Naming conflicts, may be the problem. You have that generic in your package,
> but I might, without know about yours, and I write
> setGeneric("testFun", function(x, ...))
> in my package, and then a third person that we don't know of, is loading
> both of our packages. Ouch! Indeed, this do happens.
True, but isn't that what namespaces are for?
More information about the R-devel
mailing list