OHDSI / omock

https://ohdsi.github.io/omock/
Apache License 2.0
2 stars 1 forks source link

make it work in cohortSymmetry #16

Closed ilovemane closed 6 months ago

ilovemane commented 6 months ago

cdm <- omock::emptyCdmReference("mock") |> omock::mockCdmFromTable(cohortTable = list(cohort2 = markerCohort, cohort1 = indexCohort)) |> CDMConnector::copy_cdm_to(con = con, schema = "main", overwrite = T)

Error:
! write_schema must be provided in the cdm object to use this function
Run `rlang::last_trace()` to see where the error occurred.
Called from: signal_abort(cnd, .file)
ilovemane commented 6 months ago

make it run locally first.

create duckdb first , cdmref and copy the omock cdm into cdm created.