Running ‘testthat.R’ [10s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(REDCapTidieR)
  > 
  > test_check("REDCapTidieR")
  Saving _problems/test-labelled-210.R
  Saving _problems/test-labelled-310.R
  Saving _problems/test-labelled-323.R
  Saving _problems/test-write-54.R
  Saving _problems/test-write-210.R
  Saving _problems/test-write-236.R
  [ FAIL 8 | WARN 9 | SKIP 14 | PASS 268 ]
  
  ══ Skipped tests (14) ══════════════════════════════════════════════════════════
  • On CRAN (5): 'test-lint-free.R:2:3', 'test-read_redcap.R:1:1',
    'test-supertibble.R:1:1', 'test-utils.R:214:3', 'test-write.R:341:3'
  • {labelled} is not installed (8): 'test-labelled.R:2:3',
    'test-labelled.R:52:3', 'test-labelled.R:180:3', 'test-labelled.R:231:3',
    'test-labelled.R:258:3', 'test-labelled.R:329:3', 'test-utils.R:74:3',
    'test-utils.R:482:3'
  • {labelled} is not installed. (1): 'test-utils.R:461:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-labelled.R:210:3'): make_labelled handles redcap_metadata tibbles of different sizes  ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `make_labelled(supertbl)`: The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. └─REDCapTidieR::make_labelled(supertbl) at test-labelled.R:210:3
   2.   └─rlang::check_installed("labelled", reason = "to use `make_labelled()`")
  ── Error ('test-labelled.R:310:3'): make_labelled errors with bad inputs ───────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `make_labelled(123)`: The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. ├─testthat::expect_error(make_labelled(123), class = "check_supertbl") at test-labelled.R:310:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─REDCapTidieR::make_labelled(123)
   8.   └─rlang::check_installed("labelled", reason = "to use `make_labelled()`")
  ── Error ('test-labelled.R:323:3'): make_labelled preserves S3 class ───────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `make_labelled(superheroes_supertbl)`: The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. └─REDCapTidieR::make_labelled(superheroes_supertbl) at test-labelled.R:323:3
   2.   └─rlang::check_installed("labelled", reason = "to use `make_labelled()`")
  ── Error ('test-write.R:54:3'): write_redcap_xlsx with labels works ────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `make_labelled(supertbl)`: The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. └─REDCapTidieR::make_labelled(supertbl) at test-write.R:54:3
   2.   └─rlang::check_installed("labelled", reason = "to use `make_labelled()`")
  ── Error ('test-write.R:135:5'): write_redcap_xlsx has expected supertibble and metadata outputs ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `make_labelled(.)`: The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. ├─withr::with_tempdir(...) at test-write.R:134:3
   2. │ └─withr::with_dir(tmp, code)
   3. │   └─base::force(code)
   4. ├─REDCapTidieR::write_redcap_xlsx(...) at test-write.R:135:5
   5. │ └─REDCapTidieR:::check_arg_is_supertbl(supertbl)
   6. ├─supertbl %>% make_labelled()
   7. └─REDCapTidieR::make_labelled(.)
   8.   └─rlang::check_installed("labelled", reason = "to use `make_labelled()`")
  ── Failure ('test-write.R:166:5'): write_redcap_xlsx checks work ───────────────
  Expected `.` not to throw any errors.
  Actually got a <rlib_error_package_not_found> with message:
    The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. ├─withr::with_tempdir(...) at test-write.R:157:3
   2. │ └─withr::with_dir(tmp, code)
   3. │   └─base::force(code)
   4. ├─... %>% expect_no_error() at test-write.R:166:5
   5. └─testthat::expect_no_error(.)
  ── Error ('test-write.R:205:3'): supertbl_recode works ─────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `make_labelled(.)`: The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. ├─... %>% make_labelled() at test-write.R:205:3
   2. └─REDCapTidieR::make_labelled(.)
   3.   └─rlang::check_installed("labelled", reason = "to use `make_labelled()`")
  ── Error ('test-write.R:235:3'): check_labelled works ──────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `make_labelled(.)`: The package "labelled" is required to use `make_labelled()`
  Backtrace:
      ▆
   1. ├─supertbl %>% make_labelled() at test-write.R:235:3
   2. └─REDCapTidieR::make_labelled(.)
   3.   └─rlang::check_installed("labelled", reason = "to use `make_labelled()`")
  
  [ FAIL 8 | WARN 9 | SKIP 14 | PASS 268 ]
  Error:
  ! Test failures.
  Execution halted