Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/covrPublic

covr not working with renv #571

Open
@JT-39

Description

@JT-39

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp