From murdoch at stats.uwo.ca  Mon Nov  5 22:19:37 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Mon, 05 Nov 2007 16:19:37 -0500
Subject: [Rd] dot in function name taken as S3 method by package check
In-Reply-To: <39B6DDB9048D0F4DAD42CB26AAFF0AFA04E47C7A@usctmx1106.merck.com>
References: <39B6DDB9048D0F4DAD42CB26AAFF0AFA04E47C7A@usctmx1106.merck.com>
Message-ID: <472F88E9.8010400@stats.uwo.ca>

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



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