Skip to contents

Export and launch a static shiny specific to the provided results.

Usage

exportStaticApp(
  result,
  directory,
  logo = "ohdsi",
  title = "",
  background = TRUE,
  summary = TRUE,
  panels = list(),
  theme = NULL,
  open = rlang::is_interactive()
)

Arguments

result

A summarised_result object.

directory

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

title of the shiny

background

Whether to include a background panel. Background panel content will be controlled from the generated background.md file.

summary

Whether to include a panel with a summary of content in the `result`.

panels

List specifying order of results. Each panel is determined by the available result types in the result object. Panels for any available results not specified will be included after the specified result tabs.

theme

Assign a theme to the shiny app using bslib::bs_theme()

open

Whether to open the shiny app project.

Value

The shiny app will be created in directory.

Examples

exportStaticApp(
  result = emptySummarisedResult(),
  directory = tempdir(),
  theme = "bslib::bs_theme(bg = '#bb0a1e', fg = '#0000ff')"
)
#>  Processing data
#> ! No result_type(s) found, the generated shiny will be empty.
#>  Creating shiny from provided data
#>  Shiny created in: /tmp/RtmpoZxuWx/shiny