R/app.R

Defines functions app

Documented in app

#' Run shiny app
#'
#' @param display.mode display mode
#' @param \dots see \code{\link[shiny]{runApp}}
#' @export
#' @examples
#' \dontrun{
#'   app()
#' }
app <- function(display.mode = "normal", ...) {
  appDir <- system.file("shiny", package = "tweetstorm")
  if (appDir == "") {
    stop("Could not find. Try re-installing `tweetstorm`.", call. = FALSE)
  }
  shiny::runApp(appDir, display.mode = display.mode, ... )
}
ThinkRstat/tweetstorm documentation built on May 22, 2019, 12:41 p.m.