Learn R Programming

OmopSketch (version 0.5.1)

shinyCharacteristics: Generate an interactive Shiny application that visualises the results obtained from the databaseCharacteristics() function.

Description

Generate an interactive Shiny application that visualises the results obtained from the databaseCharacteristics() function.

Usage

shinyCharacteristics(
  result,
  directory,
  title = "Database characterisation",
  logo = "ohdsi",
  theme = "bslib::bs_theme(bootswatch = 'flatly')"
)

Value

This function invisibly returns NULL and generates a static Shiny app in the specified directory.

Arguments

result

A summarised_result object containing the results from the databaseCharacteristics() function. This object should include summaries of various OMOP CDM tables, such as population characteristics, clinical records, missing data, and more

directory

A character string specifying the directory where the application will be saved.

title

Title of the shiny. Default is "Characterisation"

logo

Name of a logo or path to a logo. If NULL no logo is included. Only svg format allowed for the moment.

theme

A character string specifying the theme for the Shiny application. Default is "bslib::bs_theme(bootswatch = 'flatly')" to use the Flatly theme from the Bootswatch collection. You can customise this to use other themes.

Examples

Run this code
if (FALSE) {

library(OmopSketch)
cdm <- mockOmopSketch()
res <- databaseCharacteristics(cdm = cdm)
shinyCharacteristics(result = res, directory = here::here())
}

Run the code above in your browser using DataLab