• using R version 4.6.0 (2026-04-24)
  • 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-30 15:42:29 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: ‘openxlsx2’
  • 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/12s] 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/2s] OK
  • checking whether the package can be loaded with stated dependencies ... [1s/2s] 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/2s] 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/7s] OK
  • checking Rd files ... [1s/1s] OK
  • checking Rd metadata ... OK
  • checking Rd cross-references ... INFO Package unavailable to check Rd xrefs: ‘openxlsx2’
  • 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/3s] OK
  • checking for unstated dependencies in ‘tests’ ... OK
  • checking tests ... [9s/14s] ERROR   Running ‘testthat.R’ [9s/13s] 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")   [ FAIL 5 | WARN 8 | SKIP 5 | PASS 311 ]      ══ Skipped tests (5) ═══════════════════════════════════════════════════════════   • 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'      ══ Failed tests ════════════════════════════════════════════════════════════════   ── Error ('test-write.R:32:5'): write_redcap_xlsx without labels works ─────────   <rlib_error_package_not_found/rlang_error/error/condition>   Error in `write_redcap_xlsx(supertbl, file = "supertbl_wb.xlsx", include_metadata_sheet = FALSE, include_toc_sheet = FALSE, recode_logical = FALSE)`: The package "openxlsx2" is required to write Excel files.   Backtrace:       ▆    1. ├─withr::with_tempdir(...) at test-write.R:31:3    2. │ └─withr::with_dir(tmp, code)    3. │ └─base::force(code)    4. └─REDCapTidieR::write_redcap_xlsx(...) at test-write.R:32:5    5. └─rlang::check_installed("openxlsx2", reason = "to write Excel files.")   ── Error ('test-write.R:69:5'): write_redcap_xlsx with labels works ────────────   <rlib_error_package_not_found/rlang_error/error/condition>   Error in `write_redcap_xlsx(labelled_supertbl, add_labelled_column_headers = TRUE, file = "labelled_supertbl_wb.xlsx", include_toc_sheet = FALSE, include_metadata_sheet = FALSE, recode_logical = FALSE)`: The package "openxlsx2" is required to write Excel files.   Backtrace:       ▆    1. ├─withr::with_tempdir(...) at test-write.R:68:3    2. │ └─withr::with_dir(tmp, code)    3. │ └─base::force(code)    4. └─REDCapTidieR::write_redcap_xlsx(...) at test-write.R:69:5    5. └─rlang::check_installed("openxlsx2", reason = "to write Excel files.")   ── Error ('test-write.R:103:5'): write_redcap_xlsx has expected supertibble and metadata outputs ──   <rlib_error_package_not_found/rlang_error/error/condition>   Error in `write_redcap_xlsx(supertbl, add_labelled_column_headers = FALSE, file = "default_supertbl_wb.xlsx", include_toc_sheet = TRUE, include_metadata_sheet = TRUE, recode_logical = FALSE)`: The package "openxlsx2" is required to write Excel files.   Backtrace:       ▆    1. ├─withr::with_tempdir(...) at test-write.R:102:3    2. │ └─withr::with_dir(tmp, code)    3. │ └─base::force(code)    4. └─REDCapTidieR::write_redcap_xlsx(...) at test-write.R:103:5    5. └─rlang::check_installed("openxlsx2", reason = "to write Excel files.")   ── 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 "openxlsx2" is required to write Excel files.   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:308:5'): key argument checks work ──────────────────────   <rlib_error_package_not_found/rlang_error/error/condition>   Error in `write_redcap_xlsx(supertbl, file = "temp.docx")`: The package "openxlsx2" is required to write Excel files.   Backtrace:        ▆     1. ├─withr::with_tempdir(...) at test-write.R:307:3     2. │ └─withr::with_dir(tmp, code)     3. │ └─base::force(code)     4. ├─testthat::expect_warning(...) at test-write.R:308:5     5. │ └─testthat:::expect_condition_matching_(...)     6. │ └─testthat:::quasi_capture(...)     7. │ ├─testthat (local) .capture(...)     8. │ │ └─base::withCallingHandlers(...)     9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))    10. └─REDCapTidieR::write_redcap_xlsx(supertbl, file = "temp.docx")    11. └─rlang::check_installed("openxlsx2", reason = "to write Excel files.")      [ FAIL 5 | WARN 8 | SKIP 5 | PASS 311 ]   Error:   ! Test failures.   Execution halted
  • checking for unstated dependencies in vignettes ... OK
  • checking package vignettes ... OK
  • checking re-building of vignette outputs ... [12s/18s] OK
  • checking PDF version of manual ... [8s/14s] OK
  • DONE Status: 1 ERROR
  • using check arguments '--no-clean-on-error '