[R] Visibility of methods in different namespaces

Thomas Etheber etheber at gmx.de
Thu Jul 22 16:15:43 CEST 2010


Am 22.07.2010 15:53, schrieb Duncan Murdoch:
> On 22/07/2010 9:31 AM, Thomas Etheber wrote:
>> Dear List,
>>
>> I have posted my questions to the r-devel list as well, but I think 
>> this list is read by more users, and maybe someone from this list may 
>> point me in the right direction. Here is the corresponding thread:
>>
>> https://stat.ethz.ch/pipermail/r-devel/2010-July/058003.html
>>
>> I am sorry for the double post, but I am working on this problem now 
>> for quite a time and I am getting annoyed and thinking of just 
>> renaming the functions. Is any help available?
>
>
> Please don't cross-post.
>
> I suspect the reason you didn't get a reply on R-devel was that your 
> question didn't make sense:  you talk about S4, but your example shows 
> S3.  You'd be better off clarifying your post there.
>
> Duncan Murdoch

My example shows exactly what I have done. I refactored some existing 
code from other packages, which have done this: Create S4 objects and 
assign S3 methods to it. Even if it might be a small mixture of 
concepts, it seems to work eficiently and save some overhead of coding.



More information about the R-help mailing list