Re: [R] Problem with S4 generic function print

2010-01-11 Thread Martin Morgan
Hi Sven -- Sven Laur wrote: > First, if I have an S4 class boo should I define S3 method for printing > print.boo(..) or should I define S4 method print(..). > I mainly need to define print function only because some user might call > it and then I would like to dispatch the call to > right functi

[R] Problem with S4 generic function print

2010-01-11 Thread Sven Laur
First, if I have an S4 class boo should I define S3 method for printing print.boo(..) or should I define S4 method print(..). I mainly need to define print function only because some user might call it and then I would like to dispatch the call to right function instead. Second, it seems that