covr: Test Coverage for Packages
Version 2.2.2

Track and report code coverage for your package and (optionally) upload the results to a coverage service like 'Codecov' (http://codecov.io) or 'Coveralls' (http://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.

AuthorJim Hester [aut, cre], Willem Ligtenberg [ctb], Kirill Müller [ctb], Henrik Bengtsson [ctb], Steve Peak [ctb], Kirill Sevastyanenko [ctb], Jon Clayden [ctb], Robert Flight [ctb], Eric Brown [ctb], Brodie Gaslam [ctb], Will Beasley [ctb], Robert Krzyzanowski [ctb], Markus Wamser [ctb], Karl Forner [ctb], Gergely Daróczi [ctb], Jouni Helske [ctb], Kun Ren [ctb], Jeroen Ooms [ctb], Ken Williams [ctb], Chris Campbell [ctb]
Date of publication2017-01-05 10:39:29
MaintainerJim Hester <james.f.hester@gmail.com>
LicenseMIT + file LICENSE
Version2.2.2
URL https://github.com/jimhester/covr
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("covr")

Getting started

README.md
How does covr work anyway?

Popular man pages

codecov: Run covr on a package and upload the result to codecov.io
coveralls: Run covr on a package and upload the result to coveralls
exclusions: Exclusions
package_coverage: Calculate test coverage for a package
tally_coverage: Tally coverage by line or expression
to_cobertura: Create a Cobertura XML file
value: Retrieve the value from an object
See all...

All man pages Function index File listing

Man pages

clear_counters: clear all previous counters
codecov: Run covr on a package and upload the result to codecov.io
code_coverage: Calculate coverage of code directly
count: increment a given counter
coveralls: Run covr on a package and upload the result to coveralls
exclusions: Exclusions
file_coverage: Calculate test coverage for sets of files
function_coverage: Calculate test coverage for a specific function.
key: Generate a key for a call
new_counter: initialize a new counter
package_coverage: Calculate test coverage for a package
percent_coverage: Provide percent coverage of package
print.coverage: Print a coverage object
report: Display covr results using a standalone report
system_check: Run a system command and check if it succeeds.
system_output: Run a system command and capture the output.
tally_coverage: Tally coverage by line or expression
to_cobertura: Create a Cobertura XML file
trace_calls: trace each call with a srcref attribute
value: Retrieve the value from an object
zero_coverage: Provide locations of zero coverage

Functions

addHighlight Source code
add_color_box Source code
add_hooks Source code
add_link Source code
as.data.frame.coverage Source code
as_package Source code
clean_gcov Source code
clean_objects Source code
clear_counters Man page Source code
code_coverage Man page Source code
codecov Man page Source code
compact Source code
compute_file_stats Source code
count Man page Source code
coveralls Man page Source code
current_commit Source code
display_name Source code
env_path Source code
exclude Source code
exclusions Man page
expand_lines Source code
f1 Source code
file_coverage Man page Source code
file_exclusions Source code
filter_non_package_files Source code
fix_mcexit Source code
format_percentage Source code
function_coverage Man page Source code
get_package_name Source code
impute_srcref Source code
is_brace Source code
is_conditional_or_loop Source code
is_na Source code
is_vectorized Source code
is_windows Source code
jenkins_git_info Source code
key Man page Source code
local_branch Source code
markers Source code
markers.coverage Source code
markers.coverages Source code
markers.data.frame Source code
merge_coverage Source code
modify_name Source code
new_counter Man page Source code
normalize_exclusions Source code
normalize_path Source code
onLoad Source code
package_coverage Man page Source code
package_root Source code
parse_exclusions Source code
parse_gcov Source code
parse_type Source code
per_line Source code
percent_coverage Man page Source code
print.coverage Man page Source code
print.coverages Source code
read_description Source code
remove_empty Source code
remove_file_duplicates Source code
remove_line_duplicates Source code
renderSourceTable Source code
replace Source code
replace_binding Source code
replacement Source code
replacements_R6 Source code
replacements_RC Source code
replacements_S4 Source code
report Man page Source code
reset Source code
reset_traces Source code
run_commands Source code
run_gcov Source code
run_vignettes Source code
save_trace Source code
setdiff.data.frame Source code
shine Man page Man page
should_enable_parallel_mcexit_fix Source code
show_failures Source code
sort_file_stats Source code
srcfile_lines Source code
system_check Man page Source code
system_output Man page Source code
tally_coverage Man page Source code
temp_dir Source code
temp_file Source code
to_cobertura Man page Source code
to_codecov Source code
to_coveralls Source code
to_file Source code
to_shiny_data Source code
to_title Source code
trace_calls Man page Source code
trace_environment Source code
traced_files Source code
trim Source code
uses_parallel Source code
value Man page Source code
value.coverage Source code
value.expression_coverage Source code
wrap_command Source code
zero_coverage Man page Source code

Files

inst
inst/www
inst/www/shiny.css
inst/doc
inst/doc/how_it_works.Rmd
inst/doc/how_it_works.html
inst/doc/how_it_works.R
tests
tests/testthat.R
tests/testthat
tests/testthat/test-exclusions.R
tests/testthat/test-utils.R
tests/testthat/test-report.htm
tests/testthat/test-Compiled.R
tests/testthat/a
tests/testthat/TestR6
tests/testthat/TestR6/tests
tests/testthat/TestR6/tests/testthat.R
tests/testthat/TestR6/tests/testthat
tests/testthat/TestR6/tests/testthat/test-TestR6.R
tests/testthat/TestR6/NAMESPACE
tests/testthat/TestR6/R
tests/testthat/TestR6/R/TestR6.R
tests/testthat/TestR6/DESCRIPTION
tests/testthat/TestR6/man
tests/testthat/TestR6/man/a.Rd
tests/testthat/test-gcov.R
tests/testthat/test-vectorized.R
tests/testthat/corner-cases.R
tests/testthat/test-summary.R
tests/testthat/corner-cases.Rds
tests/testthat/TestPrint
tests/testthat/TestPrint/tests
tests/testthat/TestPrint/tests/testthat.R
tests/testthat/TestPrint/tests/testthat
tests/testthat/TestPrint/tests/testthat/test-TestSummary.R
tests/testthat/TestPrint/NAMESPACE
tests/testthat/TestPrint/R
tests/testthat/TestPrint/R/TestPrint.R
tests/testthat/TestPrint/DESCRIPTION
tests/testthat/TestPrint/man
tests/testthat/TestPrint/man/test_me.Rd
tests/testthat/test-report.R
tests/testthat/test-null.R
tests/testthat/test-RC.R
tests/testthat/TestUseTry
tests/testthat/TestUseTry/tests
tests/testthat/TestUseTry/tests/testthat
tests/testthat/TestUseTry/tests/testthat/test-notry.R
tests/testthat/TestUseTry/tests/tests.R
tests/testthat/TestUseTry/NAMESPACE
tests/testthat/TestUseTry/R
tests/testthat/TestUseTry/R/notry.R
tests/testthat/TestUseTry/DESCRIPTION
tests/testthat/TestCompiled
tests/testthat/TestCompiled/tests
tests/testthat/TestCompiled/tests/testthat.R
tests/testthat/TestCompiled/tests/testthat
tests/testthat/TestCompiled/tests/testthat/test-TestCompiled.R
tests/testthat/TestCompiled/src
tests/testthat/TestCompiled/src/simple.c
tests/testthat/TestCompiled/src/simple-header.h
tests/testthat/TestCompiled/NAMESPACE
tests/testthat/TestCompiled/R
tests/testthat/TestCompiled/R/TestCompiled.R
tests/testthat/TestCompiled/DESCRIPTION
tests/testthat/TestCompiled/man
tests/testthat/TestCompiled/man/simple.Rd
tests/testthat/test-covr.R
tests/testthat/test-corner-cases.R
tests/testthat/test-codecov.R
tests/testthat/test-functions.R
tests/testthat/TestS4
tests/testthat/TestS4/tests
tests/testthat/TestS4/tests/testthat.R
tests/testthat/TestS4/tests/testthat
tests/testthat/TestS4/tests/testthat/test-TestS4.R
tests/testthat/TestS4/NAMESPACE
tests/testthat/TestS4/R
tests/testthat/TestS4/R/TestS4.R
tests/testthat/TestS4/DESCRIPTION
tests/testthat/TestS4/man
tests/testthat/TestS4/man/a.Rd
tests/testthat/test-trace_calls.R
tests/testthat/test-parallel.R
tests/testthat/cobertura.xml
tests/testthat/test-print.R
tests/testthat/test-memoised.R
tests/testthat/TestRC
tests/testthat/TestRC/tests
tests/testthat/TestRC/tests/testthat.R
tests/testthat/TestRC/tests/testthat
tests/testthat/TestRC/tests/testthat/test-TestRC.R
tests/testthat/TestRC/NAMESPACE
tests/testthat/TestRC/R
tests/testthat/TestRC/R/TestRC.R
tests/testthat/TestRC/DESCRIPTION
tests/testthat/TestRC/man
tests/testthat/TestRC/man/a.Rd
tests/testthat/TestExclusion
tests/testthat/TestExclusion/tests
tests/testthat/TestExclusion/tests/testthat.R
tests/testthat/TestExclusion/tests/testthat
tests/testthat/TestExclusion/tests/testthat/test-TestExclusion.R
tests/testthat/TestExclusion/NAMESPACE
tests/testthat/TestExclusion/R
tests/testthat/TestExclusion/R/TestExclusion.R
tests/testthat/TestExclusion/DESCRIPTION
tests/testthat/TestExclusion/man
tests/testthat/TestExclusion/man/test_me.Rd
tests/testthat/TestParallel
tests/testthat/TestParallel/tests
tests/testthat/TestParallel/tests/testthat.R
tests/testthat/TestParallel/tests/testthat
tests/testthat/TestParallel/tests/testthat/test-TestParallel.R
tests/testthat/TestParallel/NAMESPACE
tests/testthat/TestParallel/R
tests/testthat/TestParallel/R/TestParallel.R
tests/testthat/TestParallel/DESCRIPTION
tests/testthat/TestParallel/man
tests/testthat/TestParallel/man/test_me.Rd
tests/testthat/test-package_coverage.R
tests/testthat/test-file_coverage.R
tests/testthat/test-R6.R
tests/testthat/test-coveralls.R
tests/testthat/test-S4.R
tests/testthat/corner-cases-test.R
tests/testthat/test-braceless.R
tests/testthat/TestCompiledSubdir
tests/testthat/TestCompiledSubdir/tests
tests/testthat/TestCompiledSubdir/tests/testthat.R
tests/testthat/TestCompiledSubdir/tests/testthat
tests/testthat/TestCompiledSubdir/tests/testthat/test-TestCompiledSubdir.R
tests/testthat/TestCompiledSubdir/src
tests/testthat/TestCompiledSubdir/src/Makevars
tests/testthat/TestCompiledSubdir/src/lib
tests/testthat/TestCompiledSubdir/src/lib/simple.c
tests/testthat/TestCompiledSubdir/NAMESPACE
tests/testthat/TestCompiledSubdir/R
tests/testthat/TestCompiledSubdir/R/TestCompiledSubdir.R
tests/testthat/TestCompiledSubdir/DESCRIPTION
tests/testthat/TestCompiledSubdir/man
tests/testthat/TestCompiledSubdir/man/simple.Rd
tests/testthat/test-cobertura.R
tests/testthat/b
tests/testthat/TestSummary
tests/testthat/TestSummary/tests
tests/testthat/TestSummary/tests/testthat.R
tests/testthat/TestSummary/tests/testthat
tests/testthat/TestSummary/tests/testthat/test-TestSummary.R
tests/testthat/TestSummary/NAMESPACE
tests/testthat/TestSummary/R
tests/testthat/TestSummary/R/TestSummary.R
tests/testthat/TestSummary/DESCRIPTION
tests/testthat/TestSummary/man
tests/testthat/TestSummary/man/test_me.Rd
src
src/reassign.c
NAMESPACE
NEWS.md
R
R/R6.R
R/parse_data.R
R/codecov.R
R/utils.R
R/vectorized.R
R/coveralls.R
R/parallel.R
R/report.R
R/covr.R
R/display_name.R
R/system.R
R/RC.R
R/replace.R
R/S4.R
R/compiled.R
R/data_frame.R
R/trace_calls.R
R/value.R
R/summary_functions.R
R/cobertura.R
R/exclusions.R
R/zzz.R
vignettes
vignettes/how_it_works.Rmd
README.md
MD5
build
build/vignette.rds
DESCRIPTION
man
man/coveralls.Rd
man/key.Rd
man/value.Rd
man/percent_coverage.Rd
man/new_counter.Rd
man/exclusions.Rd
man/trace_calls.Rd
man/function_coverage.Rd
man/code_coverage.Rd
man/zero_coverage.Rd
man/package_coverage.Rd
man/clear_counters.Rd
man/system_output.Rd
man/to_cobertura.Rd
man/print.coverage.Rd
man/count.Rd
man/report.Rd
man/system_check.Rd
man/codecov.Rd
man/tally_coverage.Rd
man/file_coverage.Rd
LICENSE
covr documentation built on May 19, 2017, 8:31 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.