From tlumley at u.washington.edu  Tue Mar 17 18:15:56 2009
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Tue, 17 Mar 2009 10:15:56 -0700 (PDT)
Subject: [Rd] exporting s3 and s4 methods
In-Reply-To: <49BFD2D5.60605@r-project.org>
Message-ID: <Pine.LNX.4.43.0903171015560.1676@hymn13.u.washington.edu>

On Tue, 17 Mar 2009, John Chambers wrote:

> It's important though to use the default, one argument, call to setGeneric(). 
> Otherwise the two functions are not consistent and can't exist in the same 
> namespace.

Thanks. Does this include restricting which arguments are used for dispatch? I have
  setGeneric("bigglm", signature=c("formula","data"))
to dispatch just on the first two arguments.

I will try to run everything on my desktop back in Seattle to see if there are still problems under r-devel -- my laptop is staying with its current version of R until my book goes to the publisher.


> PS: if this is the biglm() in the biglm package, the current CRAN version is 
> not a generic of any flavor.  Presumably this is a new version?

You're missing a 'g'. It's bigglm(), which is S3-generic already.  The current version uses S3 inheritance on SQLiteConnection (which works, but doesn't extend to other DBIConnection objects, as you pointed out previously).


       -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



[Rd] exporting s3 and s4 methods
Thomas Lumley