Running 'testthat.R' [83s]
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 1 | WARN 0 | SKIP 54 | PASS 176 ]
  
  ══ Skipped tests (54) ══════════════════════════════════════════════════════════
  • On CRAN (54): 'test-conceptCohort.R:126:3', 'test-conceptCohort.R:195:3',
    'test-conceptCohort.R:224:3', 'test-conceptCohort.R:271:3',
    'test-conceptCohort.R:415:3', 'test-entryAtColumnDate.R:2:3',
    'test-entryAtColumnDate.R:58:3', 'test-exitAtColumnDate.R:2:3',
    'test-exitAtColumnDate.R:62:3', 'test-exitAtColumnDate.R:119:3',
    'test-collapseCohorts.R:95:3', 'test-intersectCohorts.R:13:3',
    'test-intersectCohorts.R:77:3', 'test-intersectCohorts.R:122:3',
    'test-intersectCohorts.R:221:3', 'test-intersectCohorts.R:332:3',
    'test-intersectCohorts.R:373:3', 'test-matchCohorts.R:2:3',
    'test-matchCohorts.R:72:3', 'test-matchCohorts.R:113:3',
    'test-matchCohorts.R:180:3', 'test-matchCohorts.R:199:3',
    'test-matchCohorts.R:220:3', 'test-matchCohorts.R:241:3',
    'test-exitAtDate.R:36:3', 'test-measurementCohort.R:184:3',
    'test-requireCohortIntersectFlag.R:142:3', 'test-requireDateRange.R:2:3',
    'test-requireDateRange.R:102:3', 'test-requireDeathFlag.R:2:3',
    'test-requireDeathFlag.R:78:3', 'test-requireDemographics.R:2:3',
    'test-requireDemographics.R:130:3', 'test-requireDemographics.R:177:3',
    'test-requireDemographics.R:216:3', 'test-requireDemographics.R:241:3',
    'test-requireDemographics.R:265:3', 'test-requireDemographics.R:414:3',
    'test-requireDemographics.R:463:3', 'test-requireDemographics.R:495:3',
    'test-requireConceptIntersectFlag.R:109:3',
    'test-requireIsFirstEntry.R:24:3', 'test-requireIsFirstEntry.R:64:3',
    'test-requireIsFirstEntry.R:88:3', 'test-requireTableIntersectFlag.R:2:3',
    'test-requireTableIntersectFlag.R:99:3', 'test-subsetCohorts.R:49:3',
    'test-subsetCohorts.R:98:3', 'test-trimDemographics.R:2:3',
    'test-trimDemographics.R:328:3', 'test-yearCohorts.R:2:3',
    'test-yearCohorts.R:122:3', 'test-unionCohorts.R:137:3',
    'test-unionCohorts.R:192:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-measurementCohort.R:131:3'): mearurementCohorts works ──────────
  Error: rapi_execute: Failed to run query
  Error: Out of Memory Error: Failed to allocate block of 1048576 bytes (bad allocation)
  Backtrace:
       ▆
    1. └─CohortConstructor::measurementCohort(...) at test-measurementCohort.R:131:3
    2.   ├─dplyr::compute(...)
    3.   └─omopgenerics:::compute.cdm_table(...)
    4.     ├─dplyr::compute(...)
    5.     └─CDMConnector:::compute.db_cdm(...)
    6.       └─CDMConnector:::.computeQuery(...)
    7.         └─CDMConnector:::.computePermanent(...)
    8.           ├─DBI::dbExecute(x$src$con, sql)
    9.           └─DBI::dbExecute(x$src$con, sql)
   10.             ├─DBI::dbSendStatement(conn, statement, ...)
   11.             └─DBI::dbSendStatement(conn, statement, ...)
   12.               ├─DBI::dbSendQuery(conn, statement, ...)
   13.               └─duckdb::dbSendQuery(conn, statement, ...)
   14.                 └─duckdb (local) .local(conn, statement, ...)
   15.                   └─duckdb:::duckdb_result(...)
   16.                     └─duckdb:::duckdb_execute(res)
   17.                       └─duckdb:::rapi_execute(...)
  
  [ FAIL 1 | WARN 0 | SKIP 54 | PASS 176 ]
  Error: Test failures
  Execution halted