Running ‘testthat.R’ [11s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(goodpractice)
  > 
  > test_check("goodpractice")
  [ FAIL 3 | WARN 1 | SKIP 1 | PASS 18 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-api.R:15:3): results ────────────────────────────────────────────
  Error in `is.na(chk) || ("status" %in% names(chk) && is.na(chk[["status"]]))`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(results(x), res) at test-api.R:15:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─goodpractice::results(x)
   5.   ├─base::data.frame(...)
   6.   └─base::vapply(gp$checks, check_passed, TRUE)
   7.     └─goodpractice FUN(X[[i]], ...)
  ── Error (test-lintr.R:22:1): (code run outside of `test_that()`) ──────────────
  Error in `is.na(chk) || ("status" %in% names(chk) && is.na(chk[["status"]]))`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. └─goodpractice::results(gp_bad1) at test-lintr.R:22:0
   2.   ├─base::data.frame(...)
   3.   └─base::vapply(gp$checks, check_passed, TRUE)
   4.     └─goodpractice FUN(X[[i]], ...)
  ── Error (test-tf.R:8:3): T and F are not okay ─────────────────────────────────
  Error in `is.na(chk) || ("status" %in% names(chk) && is.na(chk[["status"]]))`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. ├─testthat::expect_false(results(x)$result) at test-tf.R:8:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─goodpractice::results(x)
   5.   ├─base::data.frame(...)
   6.   └─base::vapply(gp$checks, check_passed, TRUE)
   7.     └─goodpractice FUN(X[[i]], ...)
  
  [ FAIL 3 | WARN 1 | SKIP 1 | PASS 18 ]
  Error: Test failures
  Execution halted