Hello I've successfully installed the package "Detpack" and remembered to call it via library() But when I try to use the functions i get this: chi2testuniform(vals, 0.05) Error in chi2testuniform(vals, 0.05) : could not find function "chi2testuniform" And yet this function (amongst other which also are not recognised) are all listed on the CRAN page: http://cran.nexr.com/web/packages/detpack/detpack.pdf I can't remember anything like this happening before - as far as I can see I don't need to load or write anything else before executing the function and I can't find references to any problems with this package on the net Can anyone cast light on what's happening? Thanks Nick Wray
Detpack package
4 messages · Nick Wray, Eric Berger, Duncan Murdoch
Detpack or detpack? What happens when you try detpack::chi2testuniform(...) ?
On Wed, Feb 1, 2023 at 6:08 PM Nick Wray <nickmwray at gmail.com> wrote:
Hello I've successfully installed the package "Detpack" and remembered to call it via library() But when I try to use the functions i get this: chi2testuniform(vals, 0.05) Error in chi2testuniform(vals, 0.05) : could not find function "chi2testuniform" And yet this function (amongst other which also are not recognised) are all listed on the CRAN page: http://cran.nexr.com/web/packages/detpack/detpack.pdf I can't remember anything like this happening before - as far as I can see I don't need to load or write anything else before executing the function and I can't find references to any problems with this package on the net Can anyone cast light on what's happening? Thanks Nick Wray [[alternative HTML version deleted]]
______________________________________________ R-help at 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.
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
On Wed, 1 Feb 2023 at 16:29, Eric Berger <ericjberger at gmail.com> wrote:
Detpack or detpack? What happens when you try detpack::chi2testuniform(...) ? On Wed, Feb 1, 2023 at 6:08 PM Nick Wray <nickmwray at gmail.com> wrote:
Hello I've successfully installed the package "Detpack" and remembered to call it via library() But when I try to use the functions i get this: chi2testuniform(vals, 0.05) Error in chi2testuniform(vals, 0.05) : could not find function "chi2testuniform" And yet this function (amongst other which also are not recognised) are all listed on the CRAN page: http://cran.nexr.com/web/packages/detpack/detpack.pdf I can't remember anything like this happening before - as far as I can see I don't need to load or write anything else before executing the function and I can't find references to any problems with this package on the net Can anyone cast light on what's happening? Thanks Nick Wray [[alternative HTML version deleted]]
______________________________________________ R-help at 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.
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