Re: [Rd] Implementing a plugin paradigm with R methods

2011-08-24 Thread Janko Thyson
Hi Martin, thanks a lot for the quick reply. I'll try your suggestions. Regards, Janko On 24.08.2011 06:37, Martin Morgan wrote: On 08/23/2011 03:02 PM, Janko Thyson wrote: Dear list, I was wondering how to best implement some sort of a plugin paradigm using R methods and the dispatcher:

Re: [Rd] Implementing a plugin paradigm with R methods

2011-08-24 Thread Janko Thyson
Hi Martin, thanks a lot again for your suggestions! I played around a bit with it today and this is the solution that I like the most. The main extensions compared to your code are: 1) Using Reference Classes (I don't know, but I just like them somehow ;-)) 1) Basing method dispatch for plugin

[Rd] Implementing a plugin paradigm with R methods

2011-08-23 Thread Janko Thyson
Dear list, I was wondering how to best implement some sort of a plugin paradigm using R methods and the dispatcher: Say we have a function/method ('foo') that does something useful, but that should be open for extension in ONE specific area by OTHERS using my package. Of course they could go

Re: [Rd] Implementing a plugin paradigm with R methods

2011-08-23 Thread Martin Morgan
On 08/23/2011 03:02 PM, Janko Thyson wrote: Dear list, I was wondering how to best implement some sort of a plugin paradigm using R methods and the dispatcher: Say we have a function/method ('foo') that does something useful, but that should be open for extension in ONE specific area by OTHERS