R/runShiny.R

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

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

  shiny::runApp(appDir, display.mode = "normal")
}
floatgreen/weatherstar documentation built on May 11, 2019, 3:12 p.m.