Nothing
test_that("basic working example with one cohort", {
skip_on_cran()
# empty result - should still work without error
expect_no_error(
shinyDiagnostics(result = omopgenerics::emptySummarisedResult(),
directory = tempdir())
)
# with results
cdm_local <- omock::mockCdmReference() |>
omock::mockPerson(nPerson = 1000) |>
omock::mockObservationPeriod() |>
omock::mockConditionOccurrence() |>
omock::mockDrugExposure() |>
omock::mockObservation() |>
omock::mockMeasurement() |>
omock::mockVisitOccurrence() |>
omock::mockProcedureOccurrence() |>
omock::mockCohort(name = "my_cohort", numberCohorts = 2)
db <- DBI::dbConnect(duckdb::duckdb())
cdm <- CDMConnector::copyCdmTo(con = db, cdm = cdm_local,
schema ="main", overwrite = TRUE)
my_result_code_diag <- cohortDiagnostics(cdm$my_cohort)
expect_no_error(shinyDiagnostics(my_result_code_diag,
directory = tempdir()))
my_result_cohort_diag <- cdm$my_cohort |> phenotypeDiagnostics()
expect_no_error(shinyDiagnostics(my_result_cohort_diag,
directory = tempdir()))
})
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.