Running ‘testthat.R’ [35s/35s]
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-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-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-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 ─────────────────────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 100) at test-bindEstimates.R:14:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimatePrevalence.R:3:3'): mock db: check output format ───────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  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.   └─CDMConnector::cdm_from_con(...)
   8.     └─checkmate::assert_character(...)
  ── Error ('test-estimatePrevalence.R:127:3'): mock db: checks on working example ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimatePrevalence.R:127:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimatePrevalence.R:1316:3'): mock db: if missing cohort attributes ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-estimatePrevalence.R:1316:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimatePrevalence.R:1360:3'): mock db: prevalence using strata vars ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimatePrevalence.R:1360:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-exportIncidencePrevalenceResults.R:2:3'): writing results ──────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-exportIncidencePrevalenceResults.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-exportIncidencePrevalenceResults.R:25:3'): writing results- expected errors ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-exportIncidencePrevalenceResults.R:25:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimateIncidence.R:3:3'): mock db: check output format ────────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-estimateIncidence.R:3:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimateIncidence.R:123:3'): mock db: checks on working example ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimateIncidence.R:123:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimateIncidence.R:3217:3'): mock db: if missing cohort attributes ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-estimateIncidence.R:3217:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimateIncidence.R:3243:3'): mock db: empty outcome cohort ────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimateIncidence.R:3243:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-estimateIncidence.R:3272:3'): mock db: incidence using strata vars ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-estimateIncidence.R:3272:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-generateDenominatorCohortSet.R:3:3'): mock db: check output format ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-generateDenominatorCohortSet.R:3:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-generateDenominatorCohortSet.R:74:3'): mock db: checks on working example ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(...) at test-generateDenominatorCohortSet.R:74:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-mockIncidencePrevalenceRef.R:2:3'): check working example with defaults ──
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef() at test-mockIncidencePrevalenceRef.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-plotting.R:2:3'): basic incidence plot ─────────────────────────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-plotting.R:35:3'): basic prevalence plot ───────────────────────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:35:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-plotting.R:72:3'): plot facets ─────────────────────────────────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:72:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  ── Error ('test-plotting.R:117:3'): plot colour ────────────────────────────────
  Error in `checkmate::assert_character(cdm_schema, min.len = 1, max.len = 3, 
      any.missing = F)`: argument "cdm_schema" is missing, with no default
  Backtrace:
      ▆
   1. └─IncidencePrevalence::mockIncidencePrevalenceRef(sampleSize = 10000) at test-plotting.R:117:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─checkmate::assert_character(...)
  
  [ FAIL 19 | WARN 0 | SKIP 76 | PASS 81 ]
  Error: Test failures
  Execution halted