You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running covr::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 a renv.lock file and renv/ folder, the covr 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 -> doWithOneRestart
Execution halted
Error 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 runs covr::codecov, with the same errors.
Is this a bug?
P.S. I have tried adding covr and desc to the renv.lock file (& to Imports in DESCRIPTION) but the same error occurs
The text was updated successfully, but these errors were encountered:
When running
covr::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:This is also fails in the GitHub Actions I have setup which runs
covr::codecov
, with the same errors.Is this a bug?
P.S. I have tried adding
covr
anddesc
to the renv.lock file (& to Imports in DESCRIPTION) but the same error occursThe text was updated successfully, but these errors were encountered: