Re: [R] New methods for generic functions show and print : some visible with ls(), some not

2010-02-27 Thread Duncan Murdoch
On 27/02/2010 6:15 PM, Joris Meys wrote: Thank you both for your answers. On Fri, Feb 26, 2010 at 7:58 PM, Duncan Murdoch wrote: You aren't seeing the print method, you are seeing a newly created print generic function. As Uwe mentioned, print() is not an S4 generic, so when you create your p

Re: [R] New methods for generic functions show and print : some visible with ls(), some not

2010-02-27 Thread Joris Meys
Thank you both for your answers. On Fri, Feb 26, 2010 at 7:58 PM, Duncan Murdoch wrote: > > You aren't seeing the print method, you are seeing a newly created print > generic function. As Uwe mentioned, print() is not an S4 generic, so when > you create your print method, a new S4 generic also g

Re: [R] New methods for generic functions show and print : some visible with ls(), some not

2010-02-26 Thread Duncan Murdoch
On 26/02/2010 1:04 PM, Joris Meys wrote: Dear all, I'm trying to understand the S4 way of object-oriented programming, but I still can't grasp completely what R is doing. I have a class definition for a class called PM10Meteo, and I set a initializer function. next, I include a show method and a

Re: [R] New methods for generic functions show and print : some visible with ls(), some not

2010-02-26 Thread Uwe Ligges
On 26.02.2010 19:04, Joris Meys wrote: Dear all, I'm trying to understand the S4 way of object-oriented programming, but I still can't grasp completely what R is doing. I have a class definition for a class called PM10Meteo, and I set a initializer function. next, I include a show method and a

[R] New methods for generic functions show and print : some visible with ls(), some not

2010-02-26 Thread Joris Meys
Dear all, I'm trying to understand the S4 way of object-oriented programming, but I still can't grasp completely what R is doing. I have a class definition for a class called PM10Meteo, and I set a initializer function. next, I include a show method and a print method as shown below. setClass( Cl