Running ‘spelling.R’
  Running ‘testthat.R’ [260s/201s]
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(PatientProfiles)
  > 
  > test_check("PatientProfiles")
  Starting 2 test processes
  [ FAIL 83 | WARN 18 | SKIP 0 | PASS 91 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-addAttributes.R:2:3'): addAttributes, functionality ────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-addAttributes.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCategories.R:2:3'): addCategories, functionality ────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addCategories.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:6:3'): output format - one outcome cohort ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-addCohortIntersect.R:6:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:99:3'): first vs last event - cohort table ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addCohortIntersect.R:99:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:219:3'): multiple cohort entries per person ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addCohortIntersect.R:219:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:282:3'): output names ─────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-addCohortIntersect.R:282:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:357:3'): expected errors  ─────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-addCohortIntersect.R:357:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:466:3'): working examples ─────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addCohortIntersect.R:466:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:572:3'): working examples ─────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addCohortIntersect.R:572:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:659:3'): working examples ─────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addCohortIntersect.R:659:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addCohortIntersect.R:738:3'): censorDate functionality ─────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addCohortIntersect.R:738:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addFutureObservation.R:2:3'): check input length and type for each of the arguments ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addFutureObservation.R:21:3'): check condition_occurrence and cohort1 work ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:21:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addFutureObservation.R:70:3'): check working example with cohort1 ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:70:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addFutureObservation.R:137:3'): check working example with condition_occurrence ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:137:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addFutureObservation.R:205:3'): different name ─────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:205:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addFutureObservation.R:251:3'): priorHistory and future_observation - outside of observation period ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:251:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addFutureObservation.R:298:3'): multiple observation periods ───
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:298:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:2:3'): addDemographics, input length, type ───
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:13:3'): addDemographics, cohort and condition_occurrence ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:13:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:91:3'): addDemographics, parameters ──────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:91:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:136:3'): partial demographics - cohorts ──────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:136:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:239:3'): partial demographics - omop tables ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:239:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:324:3'): priorObservation and future_observation - outside of observation period ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:324:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:377:3'): priorObservation - multiple observation periods ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:377:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:419:3'): check that no extra rows are added ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:419:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:517:3'): age at cohort end, no missing, check age computation ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:517:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:568:3'): age at cohort entry, missing year/month/day of birth ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:568:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:608:3'): multiple cohortIds, check age at cohort end ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:608:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:649:3'): age group checks ────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:649:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:746:3'): age variable names ──────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-addDemographics.R:746:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:764:3'): expected errors ─────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:764:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:864:3'): addCategories input ─────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:864:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:984:3'): test if column exist, overwrite ─────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:984:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:1040:3'): date of birth ──────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:1040:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addDemographics.R:1093:3'): missing levels ─────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-addDemographics.R:1093:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addInObservation.R:2:3'): addInObservation, input length and type ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addInObservation.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addInObservation.R:15:3'): addInObservation, cohort and condition_occurrence ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addInObservation.R:15:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addInObservation.R:37:3'): addInObservation, parameters ────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addInObservation.R:37:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addPriorObservation.R:2:3'): check input length and type for each of the arguments ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorObservation.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addPriorObservation.R:20:3'): check condition_occurrence and cohort1 work ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorObservation.R:20:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addPriorObservation.R:68:3'): check working example with cohort1 ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorObservation.R:68:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addPriorObservation.R:116:3'): check working example with condition_occurrence ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorObservation.R:116:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addPriorObservation.R:165:3'): different name ──────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorObservation.R:165:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addPriorObservation.R:210:3'): priorHistory and future_observation - outside of observation period ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorObservation.R:210:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addPriorObservation.R:256:3'): multiple observation periods ────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorObservation.R:256:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addSex.R:2:3'): addSex, check imput length and type ────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:2:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addSex.R:12:3'): addSex, works in both cohort and condition tables ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:12:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addSex.R:22:3'): addSex, desired result for all parameters ─────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:22:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addSex.R:33:3'): different names ───────────────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:33:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:53:3'): working examples ────────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:53:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:244:3'): working examples with cohort_end_date ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:244:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:309:3'): working examples with extra column ─────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:309:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:441:3'): working examples with multiple cohort Ids ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:441:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:537:3'): working examples calculating as incidence target cohort ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:537:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:611:3'): working examples with more than one window ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:611:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:692:3'): working examples with tables, not cohorts ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:692:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:823:3'): check input length and type for each of the arguments ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:823:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:845:3'): test checkWindow function ──────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-addIntersect.R:845:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:913:3'): test if column exist, overwrite ────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:913:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:1000:3'): overlapTable is empty, check return columns ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:1000:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:1080:3'): overlap is empty or not, multiple ids, check return columns ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:1080:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:1201:3'): non snake columns not repeated in output ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-addIntersect.R:1201:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-addIntersect.R:1214:3'): no NA when overwrite column ───────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(patient_size = 1000, drug_exposure_size = 1000) at test-addIntersect.R:1214:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-checks.R:37:3'): test checkCategory with length 1  ─────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-checks.R:37:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-checks.R:73:3'):  test checkNewName renames duplicate column names in addInObservation   ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails, cohort1 = cohort1) at test-checks.R:73:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-checks.R:108:3'):  test checkWindow in addIntersect ────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-checks.R:108:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-checks.R:189:3'): checkNameStyle ───────────────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-checks.R:189:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseCharacteristics.R:57:3'): test summariseCharacteristics ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-summariseCharacteristics.R:57:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseCharacteristics.R:320:3'): test empty cohort ──────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-summariseCharacteristics.R:320:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-mockPatientProfiles.R:28:3'): test user define table ───────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails, test_table1 = test_table1) at test-mockPatientProfiles.R:28:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-mockPatientProfiles.R:50:3'): check working example with cohort table ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails, cohort1 = test_table1) at test-mockPatientProfiles.R:50:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-mockPatientProfiles.R:61:3'): check working example with defaults ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-mockPatientProfiles.R:61:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-mockPatientProfiles.R:69:3'): check dug exposure and patient table size ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-mockPatientProfiles.R:69:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Failure ('test-mockPatientProfiles.R:76:3'): add cdm with person, cohort1 and observation_period ──
  Expected `... <- NULL` to run without any errors.
  i Actually got a <rlang_error> with text:
    race_concept_id and ethnicity_concept_id are not present in table person
  ── Error ('test-mockPatientProfiles.R:120:3'): attributes for cohort table ─────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails, test_table1 = test_table1) at test-mockPatientProfiles.R:120:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseLargeScaleCharacteristics.R:61:3'): basic functionality summarise large scale characteristics ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-summariseLargeScaleCharacteristics.R:61:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseLargeScaleCharacteristics.R:240:3'): basic functionality add large scale characteristics ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-summariseLargeScaleCharacteristics.R:240:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseResult.R:67:3'): groups and strata ────────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(patient_size = 1000, drug_exposure_size = 1000) at test-summariseResult.R:67:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseResult.R:146:3'): table in db or local ────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(patient_size = 1000, drug_exposure_size = 1000) at test-summariseResult.R:146:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseResult.R:172:3'): with and with overall groups and strata ──
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(patient_size = 1000, drug_exposure_size = 1000) at test-summariseResult.R:172:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseResult.R:285:3'): test empty cohort ───────────────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails, dus_cohort = dus_cohort) at test-summariseResult.R:285:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  ── Error ('test-summariseResult.R:331:3'): test summary table naming ───────────
  Error in `newOmopTable(cdm[[nm]])`: race_concept_id and ethnicity_concept_id are not present in table person
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(connectionDetails) at test-summariseResult.R:331:3
   2.   └─CDMConnector::cdm_from_con(...)
   3.     └─omopgenerics::newCdmReference(...)
   4.       └─omopgenerics:::validateCdmReference(cdm)
   5.         └─omopgenerics::newOmopTable(cdm[[nm]])
   6.           └─omopgenerics:::checkColumnsCdm(table, name, cols)
   7.             └─cli::cli_abort(...)
   8.               └─rlang::abort(...)
  
  [ FAIL 83 | WARN 18 | SKIP 0 | PASS 91 ]
  Error: Test failures
  Execution halted