Nothing
test_that("import codelist", {
skip_if_not_installed("jsonlite")
dir.create(cs_path <- file.path(tempdir(), omopgenerics::uniqueTableName()))
codes <- newCodelist(list("disease X" = c(1L,2L,3L),
"disease Y" = c(4L,5L)))
expect_no_error(exportCodelist(x = codes, path = cs_path))
expect_true("disease X.json" %in% list.files(cs_path))
expect_true("disease Y.json" %in% list.files(cs_path))
codes_imported <- importCodelist(path = cs_path)
expect_identical(codes, codes_imported)
# we get an error if descendants set to TRUE
expect_error(
x <- importCodelist(path = system.file(package = "omopgenerics",
"concepts_for_mock")
))
})
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.