Running 'spelling.R' [0s]
  Running 'testthat.R' [50s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(PatientProfiles)
  > 
  > test_check("PatientProfiles")
  [ FAIL 71 | WARN 0 | SKIP 0 | PASS 15 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-addCohortIntersect.R:5:3'): output format - one outcome cohort ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-addCohortIntersect.R:5:2
  ── Error ('test-addCohortIntersect.R:33:3'): output format - multiple outcome cohorts ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-addCohortIntersect.R:33:2
  ── Error ('test-addCohortIntersect.R:112:3'): first vs last event - cohort table ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addCohortIntersect.R:112:2
  ── Error ('test-addCohortIntersect.R:236:3'): multiple cohort entries per person ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addCohortIntersect.R:236:2
  ── Error ('test-addCohortIntersect.R:300:3'): output names ─────────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-addCohortIntersect.R:300:2
  ── Error ('test-addCohortIntersect.R:363:3'): expected errors  ─────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-addCohortIntersect.R:363:2
  ── Error ('test-addCohortIntersect.R:463:3'): working examples ─────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addCohortIntersect.R:463:2
  ── Error ('test-addCohortIntersect.R:568:3'): working examples ─────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addCohortIntersect.R:568:2
  ── Error ('test-addCohortIntersect.R:654:3'): working examples ─────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addCohortIntersect.R:654:2
  ── Error ('test-addDemographics.R:2:3'): addDemographics, input length, type, tableprefix ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 11, patient_size = 10) at test-addDemographics.R:2:2
  ── Error ('test-addDemographics.R:16:3'): addDemographics, cohort and condition_occurrence ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 11, patient_size = 10) at test-addDemographics.R:16:2
  ── Error ('test-addDemographics.R:88:3'): addDemographics, parameters ──────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 11, patient_size = 10) at test-addDemographics.R:88:2
  ── Error ('test-addDemographics.R:135:3'): partial demographics - cohorts ──────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 11, patient_size = 10) at test-addDemographics.R:135:2
  ── Error ('test-addDemographics.R:240:3'): partial demographics - omop tables ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 11, patient_size = 10) at test-addDemographics.R:240:2
  ── Error ('test-addDemographics.R:328:3'): priorHistory and future_observation - outside of observation period ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:328:2
  ── Error ('test-addDemographics.R:383:3'): priorHistory - multiple observation periods ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addDemographics.R:383:2
  ── Error ('test-addDemographics.R:427:3'): check that no extra rows are added ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, observation_period = observation_period) at test-addDemographics.R:427:2
  ── Error ('test-addDemographics.R:508:3'): temp and permanent tables ───────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 11, patient_size = 10) at test-addDemographics.R:508:2
  ── Error ('test-addDemographics.R:569:3'): age at cohort end, no missing, check age computation ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(person = person, cohort1 = cohort1) at test-addDemographics.R:569:2
  ── Error ('test-addDemographics.R:612:3'): age at cohort entry, missing year/month/day of birth ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(person = person, cohort1 = cohort1) at test-addDemographics.R:612:2
  ── Error ('test-addDemographics.R:654:3'): multiple cohortIds, check age at cohort end ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(person = person, cohort1 = cohort1) at test-addDemographics.R:654:2
  ── Error ('test-addDemographics.R:694:3'): age group checks ────────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(person = person, cohort1 = cohort1) at test-addDemographics.R:694:2
  ── Error ('test-addDemographics.R:785:3'): age variable names ──────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-addDemographics.R:785:2
  ── Error ('test-addDemographics.R:805:3'): expected errors ─────────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 1, patient_size = 5) at test-addDemographics.R:805:2
  ── Error ('test-addDemographics.R:893:3'): addCategories input ─────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 1, patient_size = 5) at test-addDemographics.R:893:2
  ── Error ('test-addDemographics.R:997:3'): test if column exist, overwrite ─────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addDemographics.R:997:2
  ── Error ('test-addFutureObservation.R:2:3'): check input length and type for each of the arguments ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:2:2
  ── Error ('test-addFutureObservation.R:24:3'): check condition_occurrence and cohort1 work ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:24:2
  ── Error ('test-addFutureObservation.R:74:3'): check working example with cohort1 ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:74:2
  ── Error ('test-addFutureObservation.R:142:3'): check working example with condition_occurrence ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:142:2
  ── Error ('test-addFutureObservation.R:211:3'): different name ─────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:211:2
  ── Error ('test-addFutureObservation.R:259:3'): priorHistory and future_observation - outside of observation period ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:259:2
  ── Error ('test-addFutureObservation.R:308:3'): multiple observation periods ───
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addFutureObservation.R:308:2
  ── Error ('test-addInObservation.R:2:3'): addInObservation, input length and type ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addInObservation.R:2:2
  ── Error ('test-addInObservation.R:17:3'): addInObservation, cohort and condition_occurrence ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addInObservation.R:17:2
  ── Error ('test-addInObservation.R:40:3'): addInObservation, parameters ────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addInObservation.R:40:2
  ── Error ('test-addIntersect.R:53:3'): working examples ────────────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:53:2
  ── Error ('test-addIntersect.R:240:3'): working examples with cohort_end_date ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:240:2
  ── Error ('test-addIntersect.R:308:3'): working examples with extra column ─────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:308:2
  ── Error ('test-addIntersect.R:428:3'): working examples with multiple cohort Ids ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:428:2
  ── Error ('test-addIntersect.R:526:3'): working examples calculating as incidence target cohort ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:526:2
  ── Error ('test-addIntersect.R:602:3'): working examples with more than one window ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:602:2
  ── Error ('test-addIntersect.R:685:3'): working examples with tables, not cohorts ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addIntersect.R:685:2
  ── Error ('test-addIntersect.R:814:3'): check input length and type for each of the arguments ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:814:2
  ── Error ('test-addIntersect.R:838:3'): test checkWindow function ──────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-addIntersect.R:838:2
  ── Error ('test-addIntersect.R:907:3'): test if column exist, overwrite ────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:907:2
  ── Error ('test-addIntersect.R:996:3'): overlapTable is empty, check return columns ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:996:2
  ── Error ('test-addIntersect.R:1076:3'): overlap is empty or not, multiple ids, check return columns ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-addIntersect.R:1076:2
  ── Error ('test-addPriorHistory.R:2:3'): check input length and type for each of the arguments ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorHistory.R:2:2
  ── Error ('test-addPriorHistory.R:24:3'): check condition_occurrence and cohort1 work ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorHistory.R:24:2
  ── Error ('test-addPriorHistory.R:74:3'): check working example with cohort1 ───
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorHistory.R:74:2
  ── Error ('test-addPriorHistory.R:124:3'): check working example with condition_occurrence ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorHistory.R:124:2
  ── Error ('test-addPriorHistory.R:175:3'): different name ──────────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorHistory.R:175:2
  ── Error ('test-addPriorHistory.R:223:3'): priorHistory and future_observation - outside of observation period ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorHistory.R:223:2
  ── Error ('test-addPriorHistory.R:272:3'): multiple observation periods ────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addPriorHistory.R:272:2
  ── Error ('test-addSex.R:2:3'): addSex, check imput length and type ────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:2:2
  ── Error ('test-addSex.R:13:3'): addSex, works in both cohort and condition tables ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:13:2
  ── Error ('test-addSex.R:24:3'): addSex, desired result for all parameters ─────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:24:2
  ── Error ('test-addSex.R:36:3'): different names ───────────────────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-addSex.R:36:2
  ── Error ('test-checks.R:12:1'): test checkX: subject_id and person_id ─────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1) at test-checks.R:12:0
  ── Error ('test-checks.R:39:3'): test checkCategory with length 1  ─────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, person = person) at test-checks.R:39:2
  ── Error ('test-checks.R:98:1'): test #checkValue: multiple value   ────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-checks.R:98:0
  ── Error ('test-checks.R:124:3'):  test checkNewName renames duplicate column names in addInObservation   ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1) at test-checks.R:124:2
  ── Error ('test-checks.R:162:3'):  test checkWindow in addIntersect ────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(seed = 11, patient_size = 2) at test-checks.R:162:2
  ── Error ('test-checks.R:251:3'): checkNameStyle ───────────────────────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = cohort1, cohort2 = cohort2) at test-checks.R:251:2
  ── Error ('test-mockCohortProfiles.R:28:3'): test user define table ────────────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2", 
          names(listTables)))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(test_table_1 = test_table_1) at test-mockCohortProfiles.R:28:2
  ── Error ('test-mockCohortProfiles.R:55:3'): check working example with cohort table ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(cohort1 = test_table_1) at test-mockCohortProfiles.R:55:2
  ── Error ('test-mockCohortProfiles.R:69:3'): check working example with defaults ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles() at test-mockCohortProfiles.R:69:2
  ── Error ('test-mockCohortProfiles.R:80:3'): check dug exposure and patient table size ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-mockCohortProfiles.R:80:2
  ── Error ('test-mockCohortProfiles.R:90:3'): add cdm with person, cohort1 and observation_period ──
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2"))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(...) at test-mockCohortProfiles.R:90:2
  ── Error ('test-mockCohortProfiles.R:133:3'): attributes for cohort table ──────
  Error in `CDMConnector::cdm_from_con(db, cdm_schema = "main", write_schema = "main", 
      cdm_tables = c("drug_strength", "drug_exposure", "person", 
          "concept_ancestor", "observation_period", "condition_occurrence", 
          "visit_occurrence"), cohort_tables = c("cohort1", "cohort2", 
          names(listTables)))`: unused argument (cdm_tables = c("drug_strength", "drug_exposure", "person", "concept_ancestor", "observation_period", "condition_occurrence", "visit_occurrence"))
  Backtrace:
      ▆
   1. └─PatientProfiles::mockPatientProfiles(test_table_1 = test_table_1) at test-mockCohortProfiles.R:133:2
  
  [ FAIL 71 | WARN 0 | SKIP 0 | PASS 15 ]
  Error: Test failures
  In addition: There were 50 or more warnings (use warnings() to see the first 50)
  Execution halted
  There were 24 warnings (use warnings() to see them)