Skip to content

Test Coverage for Packages

11packages dependsuggested by 2,322
2.6Mdownloads / year
–test coverage
13/13flavors OK

Overview

About

Track and report code coverage for your package and (optionally) upload the results to a coverage service like 'Codecov' https://about.codecov.io or 'Coveralls' https://coveralls.io. Code coverage is a measure of the amount of code being exercised by a set of tests. It is an indirect measure of test quality and completeness. This package is compatible with any testing methodology or framework and tracks coverage of both R code and compiled C/C++/FORTRAN code.

Changes in 3.6.5

New Features and improvements

  • Added support for klmr/box modules. This works best with file_coverage(). (@radbasa, #491)
  • Performance improvement for compiled code with a lot of compilation units (@krlmlr, #611)
  • Fix R CMD check NOTE for upcoming R 4.6: non-API calls to SET_BODY, SET_CLOENV, SET_FORMALS (@t-kalinowski, #587)

Fixes and minor improvements

  • Messages are now displayed using cli instead of crayon (@olivroy, #591).
  • covr now uses testthat::with_mocked_bindings() for its internal testing (@olivroy, #595).
  • Fix a bug preventing package_coverage() from running tests when install_path is set to a relative path (@gergness, #517, #548).
  • Fixed a performance regression and an error triggered by a change in R 4.4.0. (@kyleam, #588)
  • Fixed an issue where attempting to generate code coverage on an already-loaded package could fail on Windows. (@kevinushey, #574)
Show all changes in 3.6.5Hide the rest of the changes in 3.6.5
  • Prevent covr.record_tests option from logging duplicate tests when the same line of testing code is hit repeatedly, as in a loop. (@dgkf, #528)
  • Normalize install_path path before creating directory to prevent failures when running covr in a subprocess using a path with Windows \\ path separators. (@maksymiuks, #592)

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.8 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 3.6.5
READMEYes · 626 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 3.6.5Citation fileNoWebsiteYes · pkgdown
Help pages
43 (12 internal)includes a package overview page
Examples that run
63%5 run in a plain check · 3 never run
Exported functions with examples
30%
Documented parameters
95%
Return-value docs
20%
Help pages citing references
0%

Downloads

2.6M
CRAN downloads in the past year
Rank #255 · ~7.1K/day · ~215.1K/mo
Daily download trend is not available in this view yet.
155.2K30 days
497.6K90 days
2.6M1 year
Compare downloads with other packages →
Also on18.3K r2u207 autocran38.6K conda_forge502 c2d4u

Repository

r-lib/covr ↗Organization: r-lib
348Stars
124Forks
93Open issues
10Open PRs
10Releases
1,243Commits
74Commit identities
rcoveragecodecovtravis-cicoverage-report
1,243 commits · Last activity 2026-10-16 · +0.3% stars, 30d · Default branch at 3.6.5.9001, ahead of CRAN 3.6.5 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
78%
Median days to close, 50 most recently updated closed issues
16
Median days to close, 50 most recently updated closed PRs
10

Stars over time

2025-10-14 · 3402026-09-25 · 348
PracticesBeta

14 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/r-lib/covr on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductSecurity policy
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow

pkgdown site last built 2023-11-08, before release 3.6.5 (2025-11-09)

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 4 practices
Reproducibility and dev environment (1)
Makefile
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing covr adds 13 packages (9 with compiled code, 4.1 MB of source tarballs). Heaviest: openssl 1.1 MB, jsonlite 1.0 MB, curl 714 KB.

Depends (2)
R >= 3.1.0methods
LinkingTo (0)
none
Enhances (0)
none

People & History

People (28)
Author, Maintainer since 1.0.0 (2015)
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor · added in 3.2.0
Bootstrap library
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Show 18 more contributorsHide 18 contributors
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor · added in 3.0.0
Contributor · added in 3.6.0
Contributor · added in 2.2.2
Contributor · added in 2.2.0
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor · added in 3.2.0
Bootstrap library
Contributor · added in 2.2.2
Contributor · added in 2.2.2
Contributor, Copyright holder · added in 3.2.0
highlight.js library
Contributor · added in 2.2.2
Contributor · added in 3.2.0
Bootstrap library
Contributor · added in 2.2.2
Contributor · added in 3.0.0
Contributor · added in 2.2.2
Copyright holder · added in 3.2.0
Bootstrap library
Releases (24)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 3.6.5Latest
    record
    2025-11-09 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 3.6.4
    record
    2023-11-09 · diff ↗
  • 3.6.3
    record
    2023-10-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.6.2
    record
    2023-03-25 · diff ↗
  • 3.6.1
    record
    2022-08-26 · diff ↗
  • 3.6.0
    record
    2022-08-24 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 3.5.1
    record
    2020-09-16 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 3.5.0
    record
    2020-03-06 · diff ↗ ·
    added 1 export
    to_sonarqube
  • 3.4.0
    record
    2019-11-26 · diff ↗ ·
    added 1 export
    in_covr
Show 20 earlier eventsHide 20 earlier events
  • 3.3.2
    record
    2019-10-16 · diff ↗
  • 3.3.1
    record
    2019-08-23 · diff ↗
  • 3.3.0
    record
    2019-08-06 · diff ↗ ·
    added 1 export
    azure
  • R
    R 3.6.0 released · 2019-04-26
  • 3.2.1
    record
    2018-10-18 · diff ↗
  • 3.2.0
    record
    2018-09-21 · diff ↗ ·
    removed 1 export
    shine
    added 4 exports
    display_name, environment_coverage, file_report, gitlab
  • 3.1.0
    record
    2018-05-18 · diff ↗ ·
    added 1 export
    coverage_to_list
  • R
    R 3.5.0 released · 2018-04-23
  • 3.0.1
    record
    2017-11-08 · diff ↗
  • 3.0.0
    record
    2017-06-26 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 2.2.2
    record
    2017-01-05 · diff ↗ ·
    added 1 export
    code_coverage
  • 2.2.1
    record
    2016-12-05 · diff ↗
  • 2.2.0
    record
    2016-08-04 · diff ↗ ·
    added 1 export
    to_cobertura
  • 2.1.0
    record
    2016-06-21 · diff ↗ ·
    added 2 exports
    file_coverage, report
  • R
    R 3.3.0 released · 2016-05-03
  • 2.0.1
    record
    2016-04-06 · diff ↗ ·
    removed 4 exports
    display_name<-, display_name, environment_coverage, environment_coverage_
  • 1.2.0
    record
    2015-06-25 · diff ↗
  • 1.0.0
    record
    2015-05-20
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-05-20
Total releases
24 / 11 yrs
License
MIT + file LICENSE OSI · relicensed from GPL-3 in 3.6.0
Minimum R
≥ 3.1.0
Download size
170 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("covr")
Hester, J., Beasley, W., Bengtsson, H., Bootstrap contributors, , Brown, E., Campbell, C., Clayden, J., Daróczi, G., Flight, R., Forner, K., Gaslam, B., Helske, J., Hugh-Jones, D., Kelkhoff, D., Krzyzanowski, R., Ligtenberg, W., Müller, K., Ooms, J., Otto, M., Peak, S., Ren, K., Sagalaev, I., Sevastyanenko, K., Thornton, J., Twitter, Inc, , Wamser, M., Wang, Q., & Williams, K. (2025). covr: Test Coverage for Packages (Version 3.6.5) [Computer software]. https://doi.org/10.32614/CRAN.package.covr

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for covr version 3.6.5 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy