Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

covr::package_coverage fails to find package when running examples and install_path is used. #517

Open
MLopez-Ibanez opened this issue Oct 13, 2022 · 1 comment · May be fixed by #548
Open

Comments

@MLopez-Ibanez
Copy link

 covr::package_coverage(type="all", quiet=FALSE, clean=FALSE, install_path="tmp-covr")
* installing *source* package ‘irace’ ...
** using non-staged installation
** libs
gcc -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2  -O0 --coverage -c iracebin/irace.c -o iracebin/irace.o
gcc  -g -O2  -O0 --coverage iracebin/irace.o -o iracebin/irace
gcc -I"/opt/R/4.2.1/lib/R/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2  -O0 --coverage -c iracebin/ablation.c -o iracebin/ablation.o
gcc  -g -O2  -O0 --coverage iracebin/ablation.o -o iracebin/ablation
installing via 'install.libs.R' to /home/runner/work/irace/irace/tmp-covr/irace
** R
** inst
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘irace’
    ablation                                example
    ablation_cmdline                        example
    buildCommandLine                        example
    getFinalElites                          example
    irace-package                           example
    irace                                   example
    irace.cmdline                           example
    path_rel2abs                            example
    plotAblation                            example
    printParameters                         example
    psRace                                  example
    readParameters                          example
    read_pcs_file                           example
    scenario_update_paths                   example
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (irace)
Testing examples for package ‘irace’
Error in find.package(package, lib.loc) : 
  there is no package called ‘irace’
Calls: <Anonymous> ... <Anonymous> -> .createExdotR -> Rd_db -> find.package
Execution halted
@jimhester jimhester changed the title covr::package_coverage fails to find package when install_path is used. covr::package_coverage fails to find package when running examples and install_path is used. Oct 18, 2022
@jimhester
Copy link
Member

This seems to only be true if you are running examples, e.g. if you use type = "tests" or type = "vignettes" it works as expected.

Definitely still an issue, just a reduction in the scope.

@gergness gergness linked a pull request Oct 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants