Re: [Rd] another S4 question ...

2007-12-11 Thread Prof Brian Ripley
Here is my current understanding: this area has changed a bit recently. S4 generics of the same name in different packages are regarded as different. If you define a generic show() in your package, it will not have any of the methods defined on methods::show, and likely mask the latter. So use

Re: [Rd] another S4 question ...

2007-12-11 Thread Ben Bolker
Agreed. It turns out a similar hack is done in the lme4 package for printMer ... Martin Morgan wrote: > Ben -- > > My vote would be against overriding the generic for show. If for some > reason your version proves inadequate, you force the user to > (conditional on loading your package) disamb

Re: [Rd] another S4 question ...

2007-12-11 Thread Martin Morgan
Ben -- My vote would be against overriding the generic for show. If for some reason your version proves inadequate, you force the user to (conditional on loading your package) disambiguate 'show' to get the methods package behavior. ?show says in part Formal methods for 'show' will usually