• using R Under development (unstable) (2026-03-18 r89649)
  • using platform: x86_64-apple-darwin20
  • R was compiled by     Apple clang version 14.0.0 (clang-1400.0.29.202)     GNU Fortran (GCC) 14.2.0
  • running under: macOS Ventura 13.3.1
  • using session charset: UTF-8 * current time: 2026-04-01 20:55:48 UTC
  • checking for file ‘REDCapTidieR/DESCRIPTION’ ... OK
  • checking extension type ... Package
  • this is package ‘REDCapTidieR’ version ‘1.2.4’
  • package encoding: UTF-8
  • checking package namespace information ... OK
  • checking package dependencies ... INFO Package suggested but not available for checking: ‘labelled’
  • checking if this is a source package ... OK
  • checking if there is a namespace ... OK
  • checking for executable files ... OK
  • checking for hidden files and directories ... OK
  • checking for portable file names ... OK
  • checking for sufficient/correct file permissions ... OK
  • checking whether package ‘REDCapTidieR’ can be installed ... [6s/7s] OK See the install log for details.
  • checking installed package size ... OK
  • checking package directory ... OK
  • checking ‘build’ directory ... OK
  • checking DESCRIPTION meta-information ... OK
  • checking top-level files ... OK
  • checking for left-over files ... OK
  • checking index information ... OK
  • checking package subdirectories ... OK
  • checking code files for non-ASCII characters ... OK
  • checking R files for syntax errors ... OK
  • checking whether the package can be loaded ... [1s/1s] OK
  • checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
  • checking whether the package can be unloaded cleanly ... [1s/1s] OK
  • checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
  • checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
  • checking loading without being on the library search path ... [1s/1s] OK
  • checking dependencies in R code ... OK
  • checking S3 generic/method consistency ... OK
  • checking replacement functions ... OK
  • checking foreign function calls ... OK
  • checking R code for possible problems ... [5s/6s] OK
  • checking Rd files ... [1s/1s] OK
  • checking Rd metadata ... OK
  • checking Rd cross-references ... OK
  • checking for missing documentation entries ... OK
  • checking for code/documentation mismatches ... OK
  • checking Rd \usage sections ... OK
  • checking Rd contents ... OK
  • checking for unstated dependencies in examples ... OK
  • checking contents of ‘data’ directory ... OK
  • checking data for non-ASCII characters ... [0s/0s] OK
  • checking LazyData ... OK
  • checking data for ASCII and uncompressed saves ... OK
  • checking installed files from ‘inst/doc’ ... OK
  • checking files in ‘vignettes’ ... OK
  • checking examples ... [2s/2s] ERROR Running examples in ‘REDCapTidieR-Ex.R’ failed The error most likely occurred in: > ### Name: format-helpers > ### Title: Format REDCap variable labels > ### Aliases: format-helpers fmt_strip_whitespace fmt_strip_trailing_colon > ### fmt_strip_trailing_punct fmt_strip_html fmt_strip_field_embedding > > ### ** Examples > > > fmt_strip_whitespace("Poorly Spaced Label ") [1] "Poorly Spaced Label" > > fmt_strip_trailing_colon("Label:") [1] "Label" > > fmt_strip_trailing_punct("Label-") [1] "Label" > > fmt_strip_html("<b>Bold Label</b>") [1] "Bold Label" > > fmt_strip_field_embedding("Label{another_field}") [1] "Label" > > superheroes_supertbl # A REDCapTidieR Supertibble with 2 instruments   redcap_form_name redcap_form_label redcap_data redcap_metadata structure   <chr> <chr> <list> <list> <chr> 1 heroes_information Heroes Information <tibble> <tibble [11 × 17]> nonrepea… 2 super_hero_powers Super Hero Powers <tibble> <tibble [2 × 17]> repeating # ℹ 4 more variables: data_rows <int>, data_cols <int>, data_size <lbstr_by>, # data_na_pct <formttbl> > > make_labelled(superheroes_supertbl, format_labels = fmt_strip_trailing_colon) Error in make_labelled(superheroes_supertbl, format_labels = fmt_strip_trailing_colon) :   The package "labelled" is required to use `make_labelled()` Calls: make_labelled -> check_installed Execution halted
  • checking for unstated dependencies in ‘tests’ ... OK
  • checking tests ... [11s/20s] ERROR   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
  • checking for unstated dependencies in vignettes ... OK
  • checking package vignettes ... OK
  • checking re-building of vignette outputs ... [12s/14s] OK
  • checking PDF version of manual ... [8s/14s] OK
  • DONE Status: 2 ERRORs
  • using check arguments '--no-clean-on-error '