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
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.