On Wed, Jun 20, 2012 at 10:49 PM, Martin Morgan <mtmor...@fhcrc.org> wrote:

> On 06/20/2012 08:06 PM, Hadley Wickham wrote:
>
>> But aren't the methods compatible?  If equality doesn't make a method
>> compatible what does?
>>
>
> Actually I guess that turns out to be the key (to why they work at the
> command line but not in a package).  At the command line they really _are_
> the same, e.g., .Internal(inspect("+.a")) has the same  address as "+.b".
> In the package they (e.g., badadd:::"+.a") have different addresses, I
> suppose because S3method() acts on them independently.
>
>
Thanks for the investigation. I wonder if there's some sort of workaround.



>
>> But unfortunately that doesn't work for S3 classes (even with
>> setOldClass) so it doesn't help much unless we want to rewrite
>> everything in S4 :/
>>
>
> rewrite?
>

Yes, the original question is the result of some issues that came up in
ggplot2 development...

-Winston

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to