Running ‘testthat.R’ [32s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(IncidencePrevalence)
  > 
  > test_check("IncidencePrevalence")
  Starting 2 test processes
  [ FAIL 19 | WARN 0 | SKIP 76 | PASS 81 ]
  
  ══ Skipped tests (76) ══════════════════════════════════════════════════════════
  • On CRAN (76): 'test-benchmarkIncidencePrevalence.R:2:3',
    'test-benchmarkIncidencePrevalence.R:33:3',
    'test-estimatePrevalence.R:148:3', 'test-estimatePrevalence.R:205:3',
    'test-estimatePrevalence.R:311:3', 'test-estimatePrevalence.R:441:3',
    'test-estimatePrevalence.R:518:3', 'test-estimatePrevalence.R:639:3',
    'test-estimatePrevalence.R:685:3', 'test-estimatePrevalence.R:740:3',
    'test-estimatePrevalence.R:772:3', 'test-estimatePrevalence.R:830:3',
    'test-estimatePrevalence.R:854:3', 'test-estimatePrevalence.R:879:3',
    'test-estimatePrevalence.R:988:3', 'test-estimatePrevalence.R:1018:3',
    'test-estimatePrevalence.R:1051:3', 'test-estimatePrevalence.R:1126:3',
    'test-estimatePrevalence.R:1203:3', 'test-estimatePrevalence.R:1268:3',
    'test-estimatePrevalence.R:1341:3',
    'test-generateDenominatorCohortSet.R:151:3',
    'test-generateDenominatorCohortSet.R:198:3',
    'test-generateDenominatorCohortSet.R:302:3',
    'test-generateDenominatorCohortSet.R:339:3',
    'test-generateDenominatorCohortSet.R:610:3',
    'test-generateDenominatorCohortSet.R:659:3',
    'test-generateDenominatorCohortSet.R:738:3',
    'test-generateDenominatorCohortSet.R:831:3',
    'test-generateDenominatorCohortSet.R:874:3',
    'test-generateDenominatorCohortSet.R:926:3',
    'test-generateDenominatorCohortSet.R:1010:3',
    'test-generateDenominatorCohortSet.R:1136:3',
    'test-generateDenominatorCohortSet.R:1200:3',
    'test-generateDenominatorCohortSet.R:1253:3',
    'test-generateDenominatorCohortSet.R:1311:3',
    'test-generateDenominatorCohortSet.R:1387:3',
    'test-generateDenominatorCohortSet.R:1509:3',
    'test-generateDenominatorCohortSet.R:1590:3',
    'test-generateDenominatorCohortSet.R:1639:3',
    'test-generateDenominatorCohortSet.R:1701:3',
    'test-generateDenominatorCohortSet.R:1717:3',
    'test-estimateIncidence.R:158:3', 'test-estimateIncidence.R:253:3',
    'test-estimateIncidence.R:324:3', 'test-estimateIncidence.R:411:3',
    'test-estimateIncidence.R:503:3', 'test-estimateIncidence.R:585:3',
    'test-estimateIncidence.R:737:3', 'test-estimateIncidence.R:842:3',
    'test-estimateIncidence.R:987:3', 'test-estimateIncidence.R:1048:3',
    'test-estimateIncidence.R:1102:3', 'test-estimateIncidence.R:1291:3',
    'test-estimateIncidence.R:1391:3', 'test-estimateIncidence.R:1497:3',
    'test-estimateIncidence.R:1574:3', 'test-estimateIncidence.R:1678:3',
    'test-estimateIncidence.R:1784:3', 'test-estimateIncidence.R:1890:3',
    'test-estimateIncidence.R:1946:3', 'test-estimateIncidence.R:2127:3',
    'test-estimateIncidence.R:2385:3', 'test-estimateIncidence.R:2427:3',
    'test-estimateIncidence.R:2514:3', 'test-estimateIncidence.R:2908:3',
    'test-estimateIncidence.R:2939:3', 'test-estimateIncidence.R:2986:3',
    'test-estimateIncidence.R:3042:3', 'test-estimateIncidence.R:3103:3',
    'test-estimateIncidence.R:3169:3', 'test-mockIncidencePrevalenceRef.R:39:3',
    'test-mockIncidencePrevalenceRef.R:71:3',
    'test-mockIncidencePrevalenceRef.R:95:3',
    'test-mockIncidencePrevalenceRef.R:140:3',
    'test-mockIncidencePrevalenceRef.R:227:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bindEstimates.R:14:3'): check with mock db ─────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 100)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 100) at test-bindEstimates.R:14:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimatePrevalence.R:3:3'): mock db: check output format ───────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. ├─mockIncidencePrevalenceRef() %>% ... at test-estimatePrevalence.R:3:3
   2. ├─IncidencePrevalence::generateDenominatorCohortSet(., name = "denominator")
   3. │ └─IncidencePrevalence:::fetchDenominatorCohortSet(...)
   4. │   └─IncidencePrevalence:::checkInputGenerateDCS(...)
   5. │     └─IncidencePrevalence:::cdmCheck(cdm)
   6. └─IncidencePrevalence::mockIncidencePrevalenceRef()
   7.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimatePrevalence.R:127:3'): mock db: checks on working example ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(personTable = personTable, observationPeriodTable = observationPeriodTable, 
      outcomeTable = outcomeTable)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimatePrevalence.R:127:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimatePrevalence.R:1316:3'): mock db: if missing cohort attributes ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-estimatePrevalence.R:1316:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimatePrevalence.R:1360:3'): mock db: prevalence using strata vars ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 2000, outPre = 0.7)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimatePrevalence.R:1360:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-exportIncidencePrevalenceResults.R:2:3'): writing results ──────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-exportIncidencePrevalenceResults.R:2:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-exportIncidencePrevalenceResults.R:25:3'): writing results- expected errors ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-exportIncidencePrevalenceResults.R:25:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-generateDenominatorCohortSet.R:3:3'): mock db: check output format ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-generateDenominatorCohortSet.R:3:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-generateDenominatorCohortSet.R:74:3'): mock db: checks on working example ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(personTable = personTable, observationPeriodTable = observationPeriodTable)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-generateDenominatorCohortSet.R:74:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimateIncidence.R:3:3'): mock db: check output format ────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-estimateIncidence.R:3:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimateIncidence.R:123:3'): mock db: checks on working example ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(personTable = personTable, observationPeriodTable = observationPeriodTable, 
      outcomeTable = outcomeTable)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimateIncidence.R:123:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimateIncidence.R:3217:3'): mock db: if missing cohort attributes ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-estimateIncidence.R:3217:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimateIncidence.R:3243:3'): mock db: empty outcome cohort ────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 200, earliestObservationStartDate = as.Date("2000-01-01"), 
      latestObservationStartDate = as.Date("2000-01-01"), minDaysToObservationEnd = 365, 
      maxDaysToObservationEnd = 365)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimateIncidence.R:3243:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimateIncidence.R:3272:3'): mock db: incidence using strata vars ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 2000, outPre = 0.7)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimateIncidence.R:3272:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-mockIncidencePrevalenceRef.R:2:3'): check working example with defaults ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-mockIncidencePrevalenceRef.R:2:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-plotting.R:2:3'): basic incidence plot ─────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 10000)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:2:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-plotting.R:35:3'): basic prevalence plot ───────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 10000)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:35:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-plotting.R:72:3'): plot facets ─────────────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 10000)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:72:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-plotting.R:117:3'): plot colour ────────────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalenceRef(sampleSize = 10000)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:117:3
   2.   └─rlang::check_installed("duckdb")
  
  [ FAIL 19 | WARN 0 | SKIP 76 | PASS 81 ]
  Error: Test failures
  Execution halted