Skip to content
Prev 31744 / 63424 Next

Package issue

On 3/9/2009 11:29 AM, Terry Therneau wrote:
This could cause trouble for users.  If the generic has a ... arg, a 
user has been promised that they can use any arguments there.  You might 
want it to be an error to use an arg that isn't supported by the 
particular class the user has, but it's better just to ignore the extra 
args (and document that you'll do that), rather than raise an error when 
a user uses one.
You can just point to the diag.Rd page in your documentation.  In this 
case, that's a little inconvenient because you didn't write the generic, 
so you do need a whole page for diag.bdsmatrix.  (That page can handle 
lots of other methods for standard generics too.)  But if you had 
written the generic, it's simply a matter of adding another couple of 
lines to the generic's page.  It's useful, because it gives you a chance 
to document which optional parameters are supported by your particular 
method.
You can ignore this error if you don't get it when checking the source 
tarball.  If you get it there, that's not ignorable.  (I think R-forge 
checks the directory rather than the tarball, not sure what Uwe does.)

Duncan Murdoch