R/launch.R

Defines functions launch

Documented in launch

#' Launch the Shiny app that generates bingo cards
#' @export
launch <- function() {
  if (!requireNamespace("shiny", quietly = TRUE)) {
    stop("Install 'shiny' via 'install.packages(\"shiny\")' to run this function.",
         call. = FALSE)
  }
  if (!requireNamespace("shinyjs", quietly = TRUE)) {
    stop("Install 'shinyjs' via 'install.packages(\"shinyjs\")' to run this function.",
         call. = FALSE)
  }
  shiny::runApp(system.file("shiny", package = "bingo"),
                display.mode = "normal")
}
craigalexander/DAS_Bingo documentation built on March 19, 2023, 10:14 p.m.