[R-pkg-devel] "apparent S3 methods" note in R CMD check

Martin Maechler maechler at stat.math.ethz.ch
Fri Jun 12 09:39:46 CEST 2015


>>>>> John Fox <jfox at mcmaster.ca>
>>>>>     on Wed, 10 Jun 2015 10:12:46 -0400 writes:

    > Dear list members,
    > One of the packages I maintain, effects, generates the following note in R
    > CMD check:

    > * checking S3 generic/method consistency ... NOTE
    > Found the following apparent S3 methods exported but not registered:
    > all.effects

    > The offending function, all.effects(), is deprecated in favour of
    > allEffects(), but I'd rather not get rid of it for backwards compatibility.
    > Is there any way to suppress the note without removing all.effects()? 

    > To be clear, all.effects() is *not* a method of all(), and is defined as

    >> effects::all.effects
    > function (...) 
    > {
    > .Deprecated("allEffects")
    > allEffects(...)
    > }
    > <environment: namespace:effects>

    > Thanks,
    > John

    > -----------------------------------------------
    > John Fox, Professor
    > McMaster University
    > Hamilton, Ontario, Canada
    > http://socserv.socsci.mcmaster.ca/jfox/




    > ---
    > This email has been checked for viruses by Avast antivirus software.
    > https://www.avast.com/antivirus

    > ______________________________________________
    > R-package-devel at r-project.org mailing list
    > https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list