Export and launch a static shiny specific to the provided results.
exportStaticApp(
result,
directory,
logo = "ohdsi",
title = "",
background = TRUE,
summary = TRUE,
report = FALSE,
panelDetails = panelDetailsFromResult(result),
panelStructure = NULL,
theme = NULL,
template = NULL,
updateButtons = TRUE,
includeOneChoiceFilters = TRUE,
open = rlang::is_interactive()
)The shiny app will be created in directory.
A summarised_result object.
Directory to create the shiny.
Name of a logo or path to a logo. If NULL no logo is included. Only svg format allowed for the moment.
title of the shiny
Whether to include a background panel. Background panel content will be controlled from the generated background.md file.
Whether to include a panel with a summary of content in the
result.
Whether to include a quarto report.
A named list to provide details for each one of the
panels, such as: result_id, result_type, title, icon, filters and content.
By default it is created using the panelDetailsFromResult() function.
A named list of panel identifiers to organise them in
drop-down menus. Identifiers names are the ones used in panelDetails. By
default one panel per each panelDetails element is created.
Specify the theme for the Shiny application. You can either
select a predefined theme provided by the package (e.g., "theme1"), or
define a custom theme using bslib::bs_theme(). If using a custom theme, it
must be provided as a character string (e.g.,
"bslib::bs_theme(bg = 'white', fg = 'black')").
Path to a template .docx document to be used for the
report.
Whether to include update buttons for visualisations.
Whether to include filter buttons for filters with just one choice.
Whether to open the shiny app project.
exportStaticApp(
result = omopgenerics::emptySummarisedResult(),
directory = tempdir()
)
Run the code above in your browser using DataLab