Re: [R] Method dispatch in S4

2013-08-09 Thread Bert Gunter
Please read the proto vignette before asking further questions about it. It is an alternative to/version of OOP different from S3 and S4. -- Bert On Fri, Aug 9, 2013 at 8:13 AM, Simon Zehnder wrote: > Hi Martin, > > is proto in S3? > > I will take a look first at the simple package EBImage. > >

Re: [R] Method dispatch in S4

2013-08-09 Thread Simon Zehnder
Hi Martin, is proto in S3? I will take a look first at the simple package EBImage. Thank you very much for the suggestions! Best Simon On Aug 9, 2013, at 5:01 PM, Martin Morgan wrote: > On 08/09/2013 07:45 AM, Bert Gunter wrote: >> Simon: >> >> Have a look at the "proto" package for whi

Re: [R] Method dispatch in S4

2013-08-09 Thread Martin Morgan
On 08/09/2013 07:45 AM, Bert Gunter wrote: Simon: Have a look at the "proto" package for which there is a vignette. You may find it suitable for your needs and less intimidating. Won't help much with S4, though! Some answers here http://stackoverflow.com/questions/5437238/which-packages-make-

Re: [R] Method dispatch in S4

2013-08-09 Thread Simon Zehnder
Hi Bert, thank you very much for your suggestion! I will take a look at it soon! Best Simon On Aug 9, 2013, at 4:45 PM, Bert Gunter wrote: > Simon: > > Have a look at the "proto" package for which there is a vignette. You > may find it suitable for your needs and less intimidating. > > Chee

Re: [R] Method dispatch in S4

2013-08-09 Thread Bert Gunter
Simon: Have a look at the "proto" package for which there is a vignette. You may find it suitable for your needs and less intimidating. Cheers, Bert On Fri, Aug 9, 2013 at 7:40 AM, Simon Zehnder wrote: > Hi Martin, > > thank you very much for this profound answer! Your added design advice is >

Re: [R] Method dispatch in S4

2013-08-09 Thread Simon Zehnder
Hi Martin, thank you very much for this profound answer! Your added design advice is very helpful, too! For the 'simple example': Sometimes I am still a little overwhelmed from a certain setting in the code and my ideas how I want to handle a process. But I learn from session to session. In f

Re: [R] Method dispatch in S4

2013-08-08 Thread Martin Morgan
On 08/04/2013 02:13 AM, Simon Zehnder wrote: So, I found a solution: First in the "initialize" method of class C coerce the C object into a B object. Then call the next method in the list with the B class object. Now, in the "initialize" method of class B the object is a B object and the respecti

Re: [R] Method dispatch in S4

2013-08-04 Thread Simon Zehnder
So, I found a solution: First in the "initialize" method of class C coerce the C object into a B object. Then call the next method in the list with the B class object. Now, in the "initialize" method of class B the object is a B object and the respective "generateSpec" method is called. Then, in

[R] Method dispatch in S4

2013-08-03 Thread Simon Zehnder
Dear R-Users and R-Devels, I am struggling with the method dispatch for S4 objects. First I will give a simple example to make clear what the general setting in my project is. Three classes will be build in the example: A is just a simple class. B contains A in a slot and C inherits from B. In