[R] Detpack package

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Wed Feb 1 18:32:43 CET 2023


On 01/02/2023 11:41 a.m., Nick Wray wrote:
> I did use "detpack" ie not with a capital
> 
> detpack::chi2testuniform(vals,0.05)
> gives this:
> 
> Error: 'chi2testuniform' is not an exported object from 'namespace:detpack'
> ??
> Thanks Nick
> 

The only exports from detpack are these:

   > library(detpack)
   > ls(2)
   [1] "det.construct" "det.cut"       "det.de"        "det.leafs" 
"det.query"     "det.rnd"       "det1"
   [8] "det2"

It looks as though the author of detpack documented chi2testuniform, but 
forgot to export it.  You can see the source of the version on CRAN here:

   https://github.com/cran/detpack

The author used Roxygen2, but apparently forgot to say @export before 
that function (and some others).  The package tests perfectly OK on 
CRAN, because none of the examples made it into the help pages, where 
they would have failed.

Duncan Murdoch



More information about the R-help mailing list