R/runShiny.R

Defines functions runShiny

Documented in runShiny

##' @name runShiny
##' @title Run shiny app
##' @description Run shiny app to show the weather information.
##' @usage runShiny()
##' @import leaflet
##' @importFrom tidyr unite
##' @return a shiny app
##' @examples
##' \dontrun{
##' runShiny()
##' }
##' @export

runShiny <- function() {
  appDir <- system.file("shiny-examples", "myapp", package = "airportweather")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `airportweather`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
floatgreen/airportweather documentation built on May 14, 2019, 3:06 a.m.