Re: [Rd] confusion over S3/S4 importing

2012-08-01 Thread Thomas Lumley
On Mon, Jul 30, 2012 at 7:12 AM, Ben Bolker wrote: > > Can anyone help me figure out the right way to import a method that is > defined as S3 in one package and S4 in another? > > Specifically: > > profile() is defined as an S3 method in the stats package: > > function (fitted, ...) > UseMeth

[Rd] confusion over S3/S4 importing

2012-07-30 Thread Ben Bolker
Can anyone help me figure out the right way to import a method that is defined as S3 in one package and S4 in another? Specifically: profile() is defined as an S3 method in the stats package: function (fitted, ...) UseMethod("profile") In stats4 it is defined as an S4 method: stats4: