Running ‘testthat.R’ [12s/16s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(CohortSymmetry)
  > 
  > test_check("CohortSymmetry")
  Saving _problems/test-generateSequenceCohortSet-37.R
  Saving _problems/test-generateSequenceCohortSet-80.R
  Saving _problems/test-plotTemporalSymmetry-18.R
  Saving _problems/test-summariseSequenceRatios-34.R
  Saving _problems/test-summariseSequenceRatios-100.R
  Saving _problems/test-summariseSequenceRatios-167.R
  Saving _problems/test-summariseTemporalSymmetry-3.R
  Saving _problems/test-tableSequenceRatios-4.R
  Saving _problems/test-tableTemporalSymmetry-4.R
  [ FAIL 9 | WARN 0 | SKIP 55 | PASS 0 ]
  
  ══ Skipped tests (55) ══════════════════════════════════════════════════════════
  • On CRAN (55): 'test-attrition.R:2:3', 'test-attrition.R:63:3',
    'test-attrition.R:149:3', 'test-attrition.R:310:3', 'test-attrition.R:397:3',
    'test-attrition.R:461:3', 'test-attrition.R:592:3', 'test-attrition.R:769:3',
    'test-dbs.R:2:3', 'test-dbs.R:50:3', 'test-eunomia.R:2:3',
    'test-eunomia.R:65:3', 'test-generateSequenceCohortSet.R:3:3',
    'test-generateSequenceCohortSet.R:20:3',
    'test-generateSequenceCohortSet.R:59:3',
    'test-generateSequenceCohortSet.R:99:3',
    'test-generateSequenceCohortSet.R:156:3',
    'test-generateSequenceCohortSet.R:208:3',
    'test-generateSequenceCohortSet.R:262:3',
    'test-generateSequenceCohortSet.R:291:3',
    'test-generateSequenceCohortSet.R:333:3',
    'test-generateSequenceCohortSet.R:359:3',
    'test-generateSequenceCohortSet.R:430:3',
    'test-generateSequenceCohortSet.R:518:3',
    'test-generateSequenceCohortSet.R:666:3',
    'test-generateSequenceCohortSet.R:754:3',
    'test-generateSequenceCohortSet.R:767:3',
    'test-generateSequenceCohortSet.R:779:3',
    'test-generateSequenceCohortSet.R:791:3',
    'test-generateSequenceCohortSet.R:803:3',
    'test-generateSequenceCohortSet.R:821:3',
    'test-generateSequenceCohortSet.R:839:3',
    'test-generateSequenceCohortSet.R:851:3',
    'test-generateSequenceCohortSet.R:862:3',
    'test-generateSequenceCohortSet.R:873:3',
    'test-generateSequenceCohortSet.R:897:3', 'test-plotSequenceRatio.R:2:3',
    'test-plotSequenceRatio.R:42:3', 'test-plotSequenceRatio.R:80:3',
    'test-plotTemporalSymmetry.R:43:3', 'test-plotTemporalSymmetry.R:86:3',
    'test-summariseSequenceRatios.R:204:3',
    'test-summariseSequenceRatios.R:413:3',
    'test-summariseSequenceRatios.R:518:3',
    'test-summariseSequenceRatios.R:599:3',
    'test-summariseSequenceRatios.R:754:3',
    'test-summariseSequenceRatios.R:792:3',
    'test-summariseSequenceRatios.R:830:3',
    'test-summariseSequenceRatios.R:868:3',
    'test-summariseTemporalSymmetry.R:71:3',
    'test-summariseTemporalSymmetry.R:96:3', 'test-tableSequenceRatios.R:46:3',
    'test-tableSequenceRatios.R:70:3', 'test-tableTemporalSymmetry.R:46:3',
    'test-tableTemporalSymmetry.R:70:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-generateSequenceCohortSet.R:37:3'): one ID against one ID, example 1 ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry() at test-generateSequenceCohortSet.R:37:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-generateSequenceCohortSet.R:80:3'): one ID against one ID, example 3 ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry() at test-generateSequenceCohortSet.R:80:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-plotTemporalSymmetry.R:18:3'): plot working ────────────────────
  Error in `(function (cond)  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'duckdb'", call = loadNamespace(x), package = "duckdb", lib.loc = NULL), class = c("packageNotFoundError", "error", "condition")))`: error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─DBI::dbConnect(duckdb::duckdb(), ":memory:") at test-plotTemporalSymmetry.R:18:3
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-summariseSequenceRatios.R:33:3'): summariseSequenceRatios ──────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry(indexCohort = indexCohort, markerCohort = markerCohort)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry(...) at test-summariseSequenceRatios.R:33:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-summariseSequenceRatios.R:99:3'): summariseSequenceRatios - testing ratios and CIs, Example 1 ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry(indexCohort = indexCohort, markerCohort = markerCohort)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry(...) at test-summariseSequenceRatios.R:99:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-summariseSequenceRatios.R:166:3'): summariseSequenceRatios - testing ratios and CIs, Example 2 ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry(indexCohort = indexCohort, markerCohort = markerCohort)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry(...) at test-summariseSequenceRatios.R:166:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-summariseTemporalSymmetry.R:3:3'): test summariseTemporalSymmetry ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry() at test-summariseTemporalSymmetry.R:3:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-tableSequenceRatios.R:4:3'): tableSequenceRatios - gt output ───
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry() at test-tableSequenceRatios.R:4:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-tableTemporalSymmetry.R:4:3'): tableTemporalSymmetry - gt output ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockCohortSymmetry()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─CohortSymmetry::mockCohortSymmetry() at test-tableTemporalSymmetry.R:4:3
   2.   └─rlang::check_installed("duckdb")
  
  [ FAIL 9 | WARN 0 | SKIP 55 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted