From jmc at r-project.org  Fri Mar  9 00:41:45 2012
From: jmc at r-project.org (John Chambers)
Date: Thu, 08 Mar 2012 15:41:45 -0800
Subject: [Rd] isGeneric() can return an error
In-Reply-To: <4F57EFAB.8010709@fhcrc.org>
References: <4F57EFAB.8010709@fhcrc.org>
Message-ID: <4F5943B9.5030401@r-project.org>

Bug.  Should be fixed (rev 58642) in r-devel and R 2.15.0 alpha.

Thanks.

On 3/7/12 3:30 PM, Herv? Pag?s wrote:
> Hi,
>
> I wonder if this is a feature or a bug:
>
> > isGeneric("&&")
>   Error in genericForPrimitive(f) :
>     methods may not be defined for primitive function ?&&? in this 
> version of R
> > isGeneric(":")
>   Error in genericForPrimitive(f) :
>     methods may not be defined for primitive function ?:? in this 
> version of R
>
> According to the man page:
>
>      ?isGeneric?: Is there a function named ?f?, and if so, is it a
>           generic?
>
> So it sounds like it should be a YES or NO answer.
>
> In any case the error message is confusing: it suggests that I'm trying
> to define methods for "&&", but I'm not.
>
> This is with R 2.13, R 2.14 and R 2.15.0 alpha.
>
> Thanks,
> H.
>



[Rd] isGeneric() can return an error
John Chambers