R/runApp.R

Defines functions runEventApp

Documented in runEventApp

#' Run Shiny App with preset USFSA Events to choose from
#'
#' @return shiny application
#' @export
#'
#' @importFrom shiny runApp
#' @examples
runEventApp <- function() {
  appDir <- system.file("myapp", package = "USFSAevents")
  if (appDir == "") {
    stop("Could not find myapp. Try re-installing `USFSAevents`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
ayak9/USFSAevents documentation built on March 1, 2023, 11:17 p.m.