R/run_ShinyApp.R

Defines functions run_ShinyApp

Documented in run_ShinyApp

#' Function to start Shiny app
#'
#'
#' @export
run_ShinyApp <- function() {
  appDir <- system.file("shiny-examples", "PL_app", package = "footballR")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `footballR`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
aboland/footballR documentation built on Jan. 26, 2021, 8:54 a.m.