[Rd] dot in function name taken as S3 method by package check

Duncan Murdoch murdoch at stats.uwo.ca
Mon Nov 5 22:19:37 CET 2007


On 05/11/2007 3:48 PM, Liaw, Andy wrote:
> Hello everyone,
> 
> I'm trying to update the locfit package so that it passes package check
> in R 2.6.0.  However, the check seems to think some of the functions
> with dot in the names are S3 methods (thus warns about the format of the
> \usage{} part) when they are not.  Can anyone recommend a workaround for
> this?  I tried reading R-exts, but couldn't find any hint.  I'd very
> much appreciate any help!

I think you need a NAMESPACE file.  That's where you declare whether 
things are S3 methods or not.  Without a NAMESPACE, a function like 
locfit.raw could act as the locfit method for raw objects, if someone 
ever declared a locfit generic function.  Probably not what was intended.

Duncan Murdoch



More information about the R-devel mailing list