- Notifications
You must be signed in to change notification settings - Fork119
Open
Description
When runningcovr::package_coverage()
in the project where I have my package, the function runs fine and produces the output one would expect (code coverage scores for all the functions).
However, after initialising{renv}
and creating arenv.lock
file andrenv/
folder, thecovr
package fails. This is the code and output I get:
> covr::package_coverage()Error: Failure in `C:/Users/jtufts/AppData/Local/Temp/RtmpKqr5sO/R_LIBS176043926f2c/dfeR/dfeR-tests/testthat.Rout.fail`ELY NO WARRANTY.You are welcome to redistribute it under certain conditions.Type 'license()' or 'licence()' for distribution details.R is a collaborative project with many contributors.Type 'contributors()' for more information and'citation()' on how to cite R or R packages in publications.Type 'demo()' for some demos, 'help()' for on-line help, or'help.start()' for an HTML browser interface to help.Type 'q()' to quit R.> library(testthat)> library(dfeR)Error in loadNamespace(x) : there is no package called 'covr'> > test_check("dfeR")Error in loadNamespace(x) : there is no package called 'desc'Calls: test_check ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestartExecution haltedError in loadNamespace(x) : there is no package called 'covr'Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
This is also fails in the GitHub Actions I have setup which runscovr::codecov
, with the same errors.
Is this a bug?
P.S. I have tried addingcovr
anddesc
to the renv.lock file (& to Imports in DESCRIPTION) but the same error occurs
Metadata
Metadata
Assignees
Labels
No labels