[R-pkg-devel] is this expected behavior
Richard M. Heiberger
rmh @end|ng |rom temp|e@edu
Thu Sep 14 02:24:52 CEST 2023
I have a demo file that uses a function defined in the package.
when I force the demo to be run with
R CMD check --test-dir=demo findme_1.0.tar.gz
then the function defined in the package is not recognized.
Here is the demo/findme.r file:
findme::findme()
findme()
Here is the result of:
R CMD check --test-dir=demo findme_1.0.tar.gz
* checking tests in ‘demo’ ...
Running ‘findme.r’
ERROR
Running the tests in ‘demo/findme.r’ failed.
Complete output:
> findme::findme()
[1] "You found me"
> findme()
Error in findme() : could not find function "findme"
Execution halted
The first line with the "::" executed.
The second line, which assumed the function in the current package
would be exported, was not found.
Is this the expected behavior?
Thanks
Rich
More information about the R-package-devel
mailing list