Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Imports:
Suggests:
BiocManager (>= 1.30.18),
callr (>= 3.7.1),
covr (>= 3.5.1),
covr (>= 4.0.0),
curl (>= 4.3.2),
digest (>= 0.6.29),
DT (>= 0.23),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# devtools (development version)

* `test_coverage()` and `test_coverage_active_file()` no longer need DT for HTML reports with covr 4.0.0 or later, whose reports don't use it (@jimhester, #2712).
* `test_active_file()` and `test_coverage_active_file()` now find the tests of Rust files in `src/rust/src/`, e.g. `test-lib.R` for `lib.rs`. With covr 4.0.0, `test_coverage_active_file()` also reports their coverage (@jimhester, #2711).
* `submit_cran()` gives a more informative error when the CRAN submission form can't be used, suggesting that the user consult <https://cran.r-project.org> to see if there's a CRAN closure (#2700).
* `check_built()` no longer prints `R_CHECK_` check env variables - now handled by `rcmdcheck::rcmdcheck()` directly as of r-lib/rcmdcheck#237 (#2621)
Expand Down
5 changes: 4 additions & 1 deletion R/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ show_report <- function(coverage, report, path, call = caller_env()) {
report <- report_default(report, call = call)

if (report == "html") {
check_installed("DT")
# covr's reports only use DT before covr 4.0.0
if (utils::packageVersion("covr") < "4.0.0") {
check_installed("DT")
}
covered <- unique(covr::display_name(coverage))

if (length(covered) == 1) {
Expand Down
Loading