[Rd] S4 Generics and NAMESPACE : justified warning ?

Martin Maechler maechler at stat.math.ethz.ch
Sat Sep 12 12:56:57 CEST 2009


>>>>> "YC" == Yohan Chalabi <chalabi at phys.ethz.ch>
>>>>>     on Thu, 3 Sep 2009 12:44:13 +0200 writes:

    >>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch>
    >>>>> on Mon, 31 Aug 2009 14:51:16 +0200

    MM> Yes, I agree, unjustified in your case.  The question
    MM> is: is there a patch which does differentiate between
    MM> your situation and Martin's scenario -- or does your
    MM> patch already do that?


    YC> Hi Martin,

    YC> Thanks for your response.

    YC> Here is an attempt to combine both views.

    YC> To check if the generic was derived from the function it
    YC> wants to overwrite, the following patch checks if the
    YC> package associated with the generic is the same as the
    YC> one where the function was defined.

    YC> regards, Yohan

    [.....]

I have now committed your proposal (+-),
and also added <R>/tests/Pkgs/ in order to allow checking such 
Namespace <-> S4 and other package dependencies.

Martin Maechler, ETH Zurich



More information about the R-devel mailing list