R/runExample.R

Defines functions runExample

Documented in runExample

#' Run shinyalert example
#'
#' Launch an example Shiny app that shows how easy it is to
#' create modals with \code{shinyalert}.\cr\cr
#' The demo app is also
#' \href{https://daattali.com/shiny/shinyalert-demo/}{available online}
#' to experiment with.
#' @export
runExample <- function() {
  appDir <- system.file("examples", "demo", package = "shinyalert")
  shiny::runApp(appDir, display.mode = "normal")
}
daattali/shinyalert documentation built on June 8, 2024, 6:57 a.m.