Nothing
test_bind_cohorts <- function(con, cdm_schema, write_schema) {
cdm <- cdmFromCon(con, cdm_schema, write_schema, cdmName = "test")
cohort_set1 <- readCohortSet(system.file("cohorts1", package = "CDMConnector"))
cohort_set2 <- readCohortSet(system.file("cohorts2", package = "CDMConnector")) %>%
dplyr::mutate(cohort_name = paste0("another_", cohort_name)) # names must be unique
cdm <- generateCohortSet(cdm, cohort_set1, name = "cohort1")
cdm <- generateCohortSet(cdm, cohort_set2, name = "cohort2")
cdm <- omopgenerics::bind(cdm$cohort1, cdm$cohort2, name = "cohort3")
expect_s3_class(cdm$cohort3, "cohort_table")
omopgenerics::dropSourceTable(cdm, c("cohort1", "cohort2", "cohort3"))
}
for (dbtype in dbToTest) {
test_that(glue::glue("{dbtype} - bind cohorts"), {
skip_if_not_installed("CirceR")
if (dbtype != "duckdb") skip_on_cran() else skip_if_not_installed("duckdb")
con <- get_connection(dbtype)
cdm_schema <- get_cdm_schema(dbtype)
write_schema <- get_write_schema(dbtype)
skip_if(any(write_schema == "") || any(cdm_schema == "") || is.null(con))
test_bind_cohorts(con, cdm_schema = cdm_schema, write_schema = write_schema)
disconnect(con)
})
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.