Closed ilovemane closed 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)
make it run locally first.
create duckdb first , cdmref and copy the omock cdm into cdm created.
cdm <- omock::emptyCdmReference("mock") |> omock::mockCdmFromTable(cohortTable = list(cohort2 = markerCohort, cohort1 = indexCohort)) |> CDMConnector::copy_cdm_to(con = con, schema = "main", overwrite = T)