Running ‘testthat.R’ [27s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(IncidencePrevalence)
  > 
  > test_check("IncidencePrevalence")
  Starting 2 test processes.
  Saving _problems/test-estimatePrevalence-3.R
  Saving _problems/test-estimatePrevalence-1221.R
  Saving _problems/test-estimatePrevalence-1269.R
  Saving _problems/test-generateDenominatorCohortSet-2.R
  Saving _problems/test-generateDenominatorCohortSet-71.R
  Saving _problems/test-generateDenominatorCohortSet-2455.R
  Saving _problems/test-estimateIncidence-2.R
  Saving _problems/test-estimateIncidence-1022.R
  [ FAIL 8 | WARN 0 | SKIP 101 | PASS 0 ]
  
  ══ Skipped tests (101) ═════════════════════════════════════════════════════════
  • On CRAN (101): 'test-dateUtilities.R:2:3',
    'test-benchmarkIncidencePrevalence.R:2:3',
    'test-benchmarkIncidencePrevalence.R:45:3', 'test-estimatePrevalence.R:41:3',
    'test-estimatePrevalence.R:93:3', 'test-estimatePrevalence.R:150:3',
    'test-estimatePrevalence.R:269:3', 'test-estimatePrevalence.R:413:3',
    'test-estimatePrevalence.R:495:3', 'test-estimatePrevalence.R:646:3',
    'test-estimatePrevalence.R:697:3', 'test-estimatePrevalence.R:742:3',
    'test-estimatePrevalence.R:797:3', 'test-estimatePrevalence.R:845:3',
    'test-estimatePrevalence.R:869:3', 'test-estimatePrevalence.R:894:3',
    'test-estimatePrevalence.R:1035:3', 'test-estimatePrevalence.R:1082:3',
    'test-estimatePrevalence.R:1115:3', 'test-estimatePrevalence.R:1194:3',
    'test-estimatePrevalence.R:1246:3', 'test-estimatePrevalence.R:1416:3',
    'test-estimatePrevalence.R:1458:3', 'test-estimatePrevalence.R:1504:3',
    'test-estimatePrevalence.R:1556:3', 'test-estimatePrevalence.R:1672:3',
    'test-generateDenominatorCohortSet.R:138:3',
    'test-generateDenominatorCohortSet.R:185:3',
    'test-generateDenominatorCohortSet.R:289:3',
    'test-generateDenominatorCohortSet.R:326:3',
    'test-generateDenominatorCohortSet.R:591:3',
    'test-generateDenominatorCohortSet.R:641:3',
    'test-generateDenominatorCohortSet.R:720:3',
    'test-generateDenominatorCohortSet.R:812:3',
    'test-generateDenominatorCohortSet.R:855:3',
    'test-generateDenominatorCohortSet.R:907:3',
    'test-generateDenominatorCohortSet.R:991:3',
    'test-generateDenominatorCohortSet.R:1118:3',
    'test-generateDenominatorCohortSet.R:1199:3',
    'test-generateDenominatorCohortSet.R:1263:3',
    'test-generateDenominatorCohortSet.R:1316:3',
    'test-generateDenominatorCohortSet.R:1374:3',
    'test-generateDenominatorCohortSet.R:1449:3',
    'test-generateDenominatorCohortSet.R:1572:3',
    'test-generateDenominatorCohortSet.R:1673:3',
    'test-generateDenominatorCohortSet.R:1726:3',
    'test-generateDenominatorCohortSet.R:1789:3',
    'test-generateDenominatorCohortSet.R:2018:3',
    'test-generateDenominatorCohortSet.R:2109:3',
    'test-generateDenominatorCohortSet.R:2309:3',
    'test-generateDenominatorCohortSet.R:2413:3',
    'test-estimateIncidence.R:57:3', 'test-estimateIncidence.R:120:3',
    'test-estimateIncidence.R:230:3', 'test-estimateIncidence.R:300:3',
    'test-estimateIncidence.R:399:3', 'test-estimateIncidence.R:503:3',
    'test-estimateIncidence.R:598:3', 'test-estimateIncidence.R:762:3',
    'test-estimateIncidence.R:869:3', 'test-estimateIncidence.R:1063:3',
    'test-estimateIncidence.R:1127:3', 'test-estimateIncidence.R:1184:3',
    'test-estimateIncidence.R:1269:3', 'test-estimateIncidence.R:1413:3',
    'test-estimateIncidence.R:1529:3', 'test-estimateIncidence.R:1608:3',
    'test-estimateIncidence.R:1716:3', 'test-estimateIncidence.R:1820:3',
    'test-estimateIncidence.R:1979:3', 'test-estimateIncidence.R:2035:3',
    'test-estimateIncidence.R:2233:3', 'test-estimateIncidence.R:2432:3',
    'test-estimateIncidence.R:2517:3', 'test-estimateIncidence.R:2943:3',
    'test-estimateIncidence.R:2991:3', 'test-estimateIncidence.R:3046:3',
    'test-estimateIncidence.R:3104:3', 'test-estimateIncidence.R:3127:3',
    'test-estimateIncidence.R:3142:3', 'test-estimateIncidence.R:3182:3',
    'test-estimateIncidence.R:3344:3', 'test-estimateIncidence.R:3423:3',
    'test-estimateIncidence.R:3467:3', 'test-estimateIncidence.R:3513:3',
    'test-estimateIncidence.R:3561:3', 'test-getStudyDays.R:2:3',
    'test-getStudyDays.R:238:3', 'test-mockIncidencePrevalence.R:2:3',
    'test-mockIncidencePrevalence.R:39:3', 'test-mockIncidencePrevalence.R:69:3',
    'test-mockIncidencePrevalence.R:171:3', 'test-plotting.R:2:3',
    'test-plotting.R:203:3', 'test-plotting.R:252:3', 'test-plotting.R:302:3',
    'test-plotting.R:366:3', 'test-tables.R:2:3', 'test-tables.R:126:3',
    'test-tidyResults.R:2:3', 'test-tidyResults.R:57:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-estimatePrevalence.R:2:3'): mock db: check output format ───────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence()`: The package "duckdb" is required.
  Backtrace:
       ▆
    1. ├─mockIncidencePrevalence() %>% ... at test-estimatePrevalence.R:2:3
    2. ├─IncidencePrevalence::generateDenominatorCohortSet(., name = "denominator")
    3. │ └─IncidencePrevalence:::fetchDenominatorCohortSet(...)
    4. │   └─IncidencePrevalence:::checkInputGenerateDCS(...)
    5. │     └─omopgenerics::validateCdmArgument(cdm)
    6. │       └─omopgenerics::assertClass(...)
    7. │         ├─omopgenerics:::checkClass(...)
    8. │         ├─omopgenerics:::checkLength(...)
    9. │         ├─omopgenerics:::checkNull(createCheckObject(x), null)
   10. │         └─omopgenerics:::createCheckObject(x)
   11. └─IncidencePrevalence::mockIncidencePrevalence()
   12.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimatePrevalence.R:1221:3'): mock db: if missing cohort attributes ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalence() at test-estimatePrevalence.R:1221:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimatePrevalence.R:1266:3'): mock db: prevalence using strata vars ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence(sampleSize = 1000, outPre = 0.7)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalence(...) at test-estimatePrevalence.R:1266:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-generateDenominatorCohortSet.R:2:3'): mock db: check output format ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalence() at test-generateDenominatorCohortSet.R:2:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-generateDenominatorCohortSet.R:68:3'): mock db: checks on working example ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence(personTable = personTable, observationPeriodTable = observationPeriodTable)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalence(...) at test-generateDenominatorCohortSet.R:68:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-generateDenominatorCohortSet.R:2455:3'): mock db: target cohort extra columns ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalence() at test-generateDenominatorCohortSet.R:2455:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimateIncidence.R:2:3'): mock db: check output format ────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence()`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalence() at test-estimateIncidence.R:2:3
   2.   └─rlang::check_installed("duckdb")
  ── Error ('test-estimateIncidence.R:1020:3'): mock db: multiple denominator inputs ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `mockIncidencePrevalence(sampleSize = 6000, maxOutcomeDays = 5, maxOutcomes = 6)`: The package "duckdb" is required.
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalence(...) at test-estimateIncidence.R:1020:3
   2.   └─rlang::check_installed("duckdb")
  
  [ FAIL 8 | WARN 0 | SKIP 101 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted