From therneau at mayo.edu  Wed Mar 13 12:54:15 2013
From: therneau at mayo.edu (Terry Therneau)
Date: Wed, 13 Mar 2013 06:54:15 -0500
Subject: [Rd] R-devel Digest, Vol 121, Issue 13
In-Reply-To: <mailman.27.1363172409.19992.r-devel@r-project.org>
References: <mailman.27.1363172409.19992.r-devel@r-project.org>
Message-ID: <514068E7.9080405@mayo.edu>

I think it would be a good idea.  Several versions of the survival package had a duplicate 
line in the S3methods, and were missing a line that should have been there, due to a 
cut/paste error.
    Terry T.

On 03/13/2013 06:00 AM, r-devel-request at r-project.org wrote:
> Circa 80 CRAN and core-R packages have duplicate export entries in their NAMESPACE files.  E.g.,
>    bit 1.1.9 : c("as.bit", "as.bitwhich", "as.which", "physical", "virtual")
>    forecast 4.1 : "forecast.lm"
>    graphics 2.15.3 : "barplot"
>    mcmc 0.9.1 : "morph"
>    RCurl 1.95.3 : "curlOptions"
>    utils 2.15.3 : "RweaveLatexOptions"
> Would it be helpful for 'check' to alert package writers to this?
>
> I made the list using f():
>    f<- function ()
>    {
>       for(pkg in installed.packages()[,"Package"]) {
>          try( {
>              exports<- parseNamespaceFile(pkg, R.home("library"))$exports
>              if (any(dup<- duplicated(exports))) {
>                  cat(pkg, format(packageVersion(pkg)), ":", deparse(exports[dup]), "\n")
>              }
>          }, silent = TRUE)
>       }
>    }
> I suppose it should also check for duplicates in S3method component, etc.
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>



[Rd] R-devel Digest, Vol 121, Issue 13
Terry Therneau