Running 'testthat.R' [11s]
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(CohortConstructor)
  > 
  > test_check("CohortConstructor")
  Starting 2 test processes
  [ FAIL 2 | WARN 0 | SKIP 109 | PASS 0 ]
  
  ══ Skipped tests (109) ═════════════════════════════════════════════════════════
  • On CRAN (109): 'test-addIndex.R:3:3', 'test-benchmark.R:2:3',
    'test-collapseCohorts.R:2:3', 'test-collapseCohorts.R:99:3',
    'test-collapseCohorts.R:173:3', 'test-collapseCohorts.R:260:3',
    'test-copyCohorts.R:2:3', 'test-copyCohorts.R:52:3',
    'test-copyCohorts.R:108:3', 'test-conceptCohort.R:2:3',
    'test-conceptCohort.R:344:3', 'test-conceptCohort.R:547:3',
    'test-conceptCohort.R:763:3', 'test-deathCohort.R:2:3',
    'test-deathCohort.R:61:3', 'test-deathCohort.R:129:3',
    'test-deathCohort.R:188:3', 'test-deathCohort.R:245:3',
    'test-deathCohort.R:325:3', 'test-deathCohort.R:414:3',
    'test-demographicsCohort.R:2:3', 'test-demographicsCohort.R:45:3',
    'test-demographicsCohort.R:84:3', 'test-demographicsCohort.R:117:3',
    'test-demographicsCohort.R:156:3', 'test-demographicsCohort.R:221:3',
    'test-entryAtColumnDate.R:2:3', 'test-entryAtColumnDate.R:98:3',
    'test-entryAtColumnDate.R:215:3', 'test-exitAtColumnDate.R:2:3',
    'test-exitAtDate.R:2:3', 'test-exitAtDate.R:157:3',
    'test-exitAtDate.R:246:3', 'test-matchCohorts.R:2:3',
    'test-matchCohorts.R:71:3', 'test-matchCohorts.R:122:3',
    'test-matchCohorts.R:183:3', 'test-matchCohorts.R:280:3',
    'test-matchCohorts.R:316:3', 'test-intersectCohorts.R:2:3',
    'test-intersectCohorts.R:51:3', 'test-intersectCohorts.R:102:3',
    'test-intersectCohorts.R:149:3', 'test-intersectCohorts.R:206:3',
    'test-intersectCohorts.R:287:3', 'test-intersectCohorts.R:338:3',
    'test-intersectCohorts.R:394:3', 'test-intersectCohorts.R:486:3',
    'test-intersectCohorts.R:606:3', 'test-intersectCohorts.R:669:3',
    'test-intersectCohorts.R:723:3', 'test-measurementCohort.R:2:3',
    'test-renameCohort.R:2:3', 'test-padCohortDate.R:2:3',
    'test-padCohortDate.R:60:3', 'test-padCohortDate.R:141:3',
    'test-padCohortDate.R:173:3', 'test-padCohortDate.R:327:3',
    'test-padCohortDate.R:359:3', 'test-requireCohortIntersect.R:2:3',
    'test-requireDateRange.R:2:3', 'test-requireDateRange.R:148:3',
    'test-requireDateRange.R:253:3', 'test-requireConceptIntersect.R:2:3',
    'test-requireConceptIntersect.R:153:3',
    'test-requireConceptIntersect.R:267:3',
    'test-requireConceptIntersect.R:377:3',
    'test-requireConceptIntersect.R:455:3', 'test-requireDuration.R:2:3',
    'test-requireDuration.R:104:3', 'test-requireIsEntry.R:2:3',
    'test-requireIsEntry.R:57:3', 'test-requireIsEntry.R:128:3',
    'test-requireIsEntry.R:145:3', 'test-requireIsEntry.R:216:3',
    'test-requireIsEntry.R:359:3', 'test-requireMinCohortCount.R:2:3',
    'test-requireMinCohortCount.R:122:3', 'test-requireTableIntersect.R:2:3',
    'test-requireTableIntersect.R:150:3', 'test-requireTableIntersect.R:266:3',
    'test-requireTableIntersect.R:383:3', 'test-sampleCohorts.R:2:3',
    'test-sampleCohorts.R:35:3', 'test-sampleCohorts.R:64:3',
    'test-sampleCohorts.R:89:3', 'test-sampleCohorts.R:109:3',
    'test-sampleCohorts.R:130:3', 'test-stratifyCohorts.R:2:3',
    'test-requireDemographics.R:2:3', 'test-requireDemographics.R:163:3',
    'test-requireDemographics.R:210:3', 'test-requireDemographics.R:273:3',
    'test-requireDemographics.R:298:3', 'test-requireDemographics.R:354:3',
    'test-requireDemographics.R:384:3', 'test-requireDemographics.R:479:3',
    'test-subsetCohorts.R:2:3', 'test-subsetCohorts.R:78:3',
    'test-subsetCohorts.R:131:3', 'test-subsetCohorts.R:156:3',
    'test-unionCohorts.R:2:3', 'test-unionCohorts.R:202:3',
    'test-trimDemographics.R:2:3', 'test-trimDemographics.R:328:3',
    'test-trimDemographics.R:449:3', 'test-yearCohorts.R:2:3',
    'test-yearCohorts.R:139:3', 'test-yearCohorts.R:229:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-measurementCohort.R:395:3'): useRecordsBeforeObservation TRUE + edge cases ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─CohortConstructor:::copyCdm(...) at test-measurementCohort.R:395:3
   2. │ └─CDMConnector::dbSource(...) at D:\RCompile\CRANpkg\local\4.5\CohortConstructor.Rcheck\tests\testthat\setup.R:23:3
   3. │   └─methods::is(con, "Pool")
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-requireDemographics.R:455:3'): Missing sex/year of birth ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'duckdb'
  Backtrace:
      ▆
   1. ├─CohortConstructor:::copyCdm(cdm_local) at test-requireDemographics.R:455:3
   2. │ └─CDMConnector::dbSource(...) at D:\RCompile\CRANpkg\local\4.5\CohortConstructor.Rcheck\tests\testthat\setup.R:23:3
   3. │   └─methods::is(con, "Pool")
   4. └─base::loadNamespace(x) at D:\RCompile\CRANpkg\local\4.5\CohortConstructor.Rcheck\tests\testthat\setup.R:23:3
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 2 | WARN 0 | SKIP 109 | PASS 0 ]
  Error: Test failures
  Execution halted