Re: [Rd] Defining a method in two packages

From: Terry Therneau <>
Date: Wed, 10 Mar 2010 08:30:07 -0600

Doug wrote:
> I think a simpler solution, which I have implemented in lme4 but not
> yet released is to have

> importFrom(nlme, ranef, fixef)

> in the NAMESPACE file of packages that implement methods for those
> generics (and, of course, add nlme to the Imports: specification in
> the DESCRIPTION file). As nlme is a required package I don't think
> this is too much of a burden.

  I'll do the same change in coxme.

We can save Kevin Coombe's solution of a separate package of "method stubs" (which I find very similar in spirit to a shared .h file in C) for the day that ranef/fixef gets wildly popular. An importMethods directive for the namespace is an intriguing long term idea for the core team to ponder.

Again, thanks fo all the input. This discussion has been very illuminating for me.

Terry T. mailing list Received on Wed 10 Mar 2010 - 14:33:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 10 Mar 2010 - 17:51:02 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive