R/mayoshiny_example.R

Defines functions mayoshiny_example

Documented in mayoshiny_example

#' View example of a Mayo Shiny template
#'
#' Run a local instance of a Shiny template
#'
#' @param theme Name of a theme.
#' @export

mayoshiny_example <- function(theme = c("classic", "horizon")) {
  theme <- match.arg(theme)
  path <- system.file("examples/shiny", theme, "app.R", package = "mayoshiny")
  shiny::runApp(path)
}
eheinzen/mayoshiny documentation built on Aug. 16, 2021, 9:59 a.m.