Running ‘testthat.R’ [161s/101s]
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(CDMConnector)
  > 
  > test_check("CDMConnector")
  Starting 2 test processes
  [ FAIL 1 | WARN 0 | SKIP 12 | PASS 239 ]
  
  ══ Skipped tests (12) ══════════════════════════════════════════════════════════
  • Capr cannot be loaded (1): 'test-db-generateCohortSet.R:158:3'
  • CirceR cannot be loaded (4): 'test-db-generateCohortSet.R:71:5',
    'test-db-generateCohortSet.R:84:3',
    'test-db-generateConceptCohortSet.R:201:5',
    'test-db-recordCohortAttrition.R:132:3'
  • TreatmentPatterns cannot be loaded (1): 'test-db-generateCohortSet.R:208:3'
  • failing test (3): 'test-db-dateadd.R:125:3', 'test-readCohortSet.R:3:3',
    'test-readCohortSet.R:22:3'
  • manual test (3): 'test-Eunomia.R:2:3', 'test-db-copy_cdm_to.R:62:3',
    'test-db-generateCohortSet.R:190:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-local_cdm.R:17:3'): assertTables works with local cdms ─────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1.
  i With name: person.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'arrow'
  Backtrace:
       ▆
    1. ├─CDMConnector::stow(cdm, path) at test-local_cdm.R:17:3
    2. │ └─purrr::walk2(...)
    3. │   └─purrr::map2(.x, .y, .f, ..., .progress = .progress)
    4. │     └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
    5. │       ├─purrr:::with_indexed_errors(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       ├─purrr:::call_with_cleanup(...)
    8. │       └─CDMConnector (local) .f(.x[[i]], .y[[i]], ...)
    9. ├─base::loadNamespace(x)
   10. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   12. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   13. │ └─base::stop(cond)
   14. └─purrr (local) `<fn>`(`<pckgNtFE>`)
   15.   └─cli::cli_abort(...)
   16.     └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 12 | PASS 239 ]
  Error: Test failures
  Execution halted