Expected `exportStaticApp(result = result, directory = tdir, open = FALSE)` to run without any errors.
i Actually got a <purrr_error_indexed> with text:
  i In index: 1.
  i With name: summarise_characteristics.
  Caused by error in `purrr::map_chr()`:
  i In index: 2.
  Caused by error in `purrr::map_chr()`:
  i In index: 1.
  Caused by error in `createButton()`:
  ! argument "def" is missing, with no default

unlink(file.path(tdir, "shiny"), recursive = TRUE)
logo = system.file("oxford.png", package = "OmopViewer")
ui <- readLines(file.path(tdir, "shiny", "ui.R"))
server <- readLines(file.path(tdir, "shiny", "server.R"))
numberCohorts = 3, cohortName = c("covid", "tb", "asthma"))
# TO BE REMOVED WHEN CohortCharacteristics works with local cdms
con = duckdb::dbConnect(duckdb::duckdb()), cdm = cdm, schema = "main")
# expect warning if panel is not present
result = result, directory = tdir, panelStructure = list("not an option")
"CHARACTERISTICS" = c("summarise_characteristics", "summarise_large_scale_characteristics", "hi"),
expect_error(exportStaticApp(result = result, directory = tdir, panelStructure = c("must be a list")))
expect_error(exportStaticApp(result = result, directory = tdir, panelStructure = list(
ui <- readLines(file.path(tdir, "shiny", "ui.R")) |>
expect_true(grepl(expectedTheme, ui, fixed = TRUE))
theme <- "bslib::bs_theme(bootswatch = 'sandstone',
test_that("check preprocess file works", {
result = result, directory = tdir, open = FALSE

"bslib::bs_theme(bootswatch = 'sandstone',
    primary = '#605ca8',
    bg = 'white',
    fg = 'black',
    success = '#3B9AB2',
    base_font = bslib::font_google('Space Mono'),
    code_font = bslib::font_google('Space Mono'))"

file.exists(file.path(tdir, "shiny", "data", "preprocess.R")) is not TRUE

`actual`:   FALSE
`expected`: TRUE

file.exists(file.path(tdir, "shiny", "data", "shinyData.RData")) is not TRUE

`actual`:   FALSE
`expected`: TRUE

Error in `readChar(con, 5L, useBytes = TRUE)`: cannot open the connection