Running ‘testthat.R’ [35s/64s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ops <- options("crayon.enabled" = FALSE, warn = 1)
  > library(testthat)
  > library("covr")
  > 
  > # Skip tests on Solaris as gcc is not in the PATH and I do not have an easy way
  > # to mimic the CRAN build environment
  > if (!tolower(Sys.info()[["sysname"]]) == "sunos") {
  +   Sys.setenv("R_TESTS" = "")
  +   test_check("covr")
  + }
  ── 1. Error: R6 methods coverage is reported (@test-R6.R#4)  ───────────────────
  cannot open the connection
  1: as.data.frame(package_coverage("TestR6")) at testthat/test-R6.R:4
  2: package_coverage("TestR6")
  3: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  4: readLines(file.path(lib, pkg_name, "R", pkg_name))
  5: file(con, "r")
  
  ── 2. Error: RC methods coverage is reported (@test-RC.R#3)  ───────────────────
  cannot open the connection
  1: as.data.frame(package_coverage("TestRC")) at testthat/test-RC.R:3
  2: package_coverage("TestRC")
  3: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  4: readLines(file.path(lib, pkg_name, "R", pkg_name))
  5: file(con, "r")
  
  ── 3. Error: S4 methods coverage is reported (@test-S4.R#3)  ───────────────────
  cannot open the connection
  1: as.data.frame(package_coverage("TestS4")) at testthat/test-S4.R:3
  2: package_coverage("TestS4")
  3: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  4: readLines(file.path(lib, pkg_name, "R", pkg_name))
  5: file(con, "r")
  
  ── 4. Error: it works with coverage objects (@test-cobertura.R#5)  ─────────────
  cannot open the connection
  1: package_coverage("TestSummary") at testthat/test-cobertura.R:5
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 5. Error: (unknown) (@test-codecov.R#52)  ───────────────────────────────────
  cannot open the connection
  1: package_coverage("TestS4") at testthat/test-codecov.R:52
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 6. Error: (unknown) (@test-coveralls.R#52)  ─────────────────────────────────
  cannot open the connection
  1: package_coverage("TestS4") at testthat/test-coveralls.R:52
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 7. Error: (unknown) (@test-exclusions.R#125)  ───────────────────────────────
  cannot open the connection
  1: package_coverage("TestSummary") at testthat/test-exclusions.R:125
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 8. Error: gitlab (@test-gitlab.R#4)  ────────────────────────────────────────
  cannot open the connection
  1: package_coverage("TestS4") at testthat/test-gitlab.R:4
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 9. Error: package_coverage can return just tests and vignettes (@test-package
  cannot open the connection
  1: package_coverage("TestPrint", type = c("tests", "vignettes"), combine_types = FALSE) at testthat/test-package_coverage.R:16
  2: do.call(Recall, c(called_args, type = t))
  3: (function (...) 
     .Internal(Recall(...)))(path = "TestPrint", combine_types = FALSE, type = "tests")
  4: package_coverage("TestPrint", type = c("tests", "vignettes"), combine_types = FALSE)
  5: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  6: readLines(file.path(lib, pkg_name, "R", pkg_name))
  7: file(con, "r")
  
  ── 10. Error: package_coverage with type == 'all' returns test, vignette and exa
  cannot open the connection
  1: package_coverage("TestPrint", type = "all", combine_types = FALSE) at testthat/test-package_coverage.R:22
  2: do.call(Recall, c(called_args, type = t))
  3: (function (...) 
     .Internal(Recall(...)))(path = "TestPrint", combine_types = FALSE, type = "tests")
  4: package_coverage("TestPrint", type = "all", combine_types = FALSE)
  5: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  6: readLines(file.path(lib, pkg_name, "R", pkg_name))
  7: file(con, "r")
  
  ── 11. Error: package_coverage with type == 'none' runs no test code (@test-pack
  cannot open the connection
  1: package_coverage("TestS4", type = "none") at testthat/test-package_coverage.R:28
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 12. Error: mcparallel without the fix (@test-parallel.R#7)  ─────────────────
  cannot open the connection
  1: withr::with_options(list(covr.fix_parallel_mcexit = FALSE), package_coverage("TestParallel", 
         type = "test")) at testthat/test-parallel.R:7
  2: force(code)
  3: package_coverage("TestParallel", type = "test")
  4: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  5: readLines(file.path(lib, pkg_name, "R", pkg_name))
  6: file(con, "r")
  
  ── 13. Error: mcparallel with the fix (@test-parallel.R#19)  ───────────────────
  cannot open the connection
  1: package_coverage("TestParallel", type = "test") at testthat/test-parallel.R:19
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 14. Error: print.coverage prints by = "line" by default (@test-print.R#17)  ─
  cannot open the connection
  1: package_coverage("TestPrint") at testthat/test-print.R:17
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 15. Error: print.coverage prints by = "line" by default (@test-print.R#36)  ─
  cannot open the connection
  1: package_coverage("TestPrint") at testthat/test-print.R:36
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ── 16. Error: Summary gives 50% coverage and two lines with zero coverage (@test
  cannot open the connection
  1: package_coverage("TestSummary") at testthat/test-summary.R:4
  2: add_hooks(pkg$package, tmp_lib, fix_mcexit = should_enable_parallel_mcexit_fix(pkg))
  3: readLines(file.path(lib, pkg_name, "R", pkg_name))
  4: file(con, "r")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 139 SKIPPED: 2 FAILED: 16
  1. Error: R6 methods coverage is reported (@test-R6.R#4) 
  2. Error: RC methods coverage is reported (@test-RC.R#3) 
  3. Error: S4 methods coverage is reported (@test-S4.R#3) 
  4. Error: it works with coverage objects (@test-cobertura.R#5) 
  5. Error: (unknown) (@test-codecov.R#52) 
  6. Error: (unknown) (@test-coveralls.R#52) 
  7. Error: (unknown) (@test-exclusions.R#125) 
  8. Error: gitlab (@test-gitlab.R#4) 
  9. Error: package_coverage can return just tests and vignettes (@test-package_coverage.R#16) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted