R/run_app.R

Defines functions run_app

Documented in run_app

##' runs the shiny app
##'
##' @details Relies on the app being in a file called `app.R` within `inst/shiny-examples/app/
##' @export
##' @example
##' # Type the following at the console to run the app
##' run_app()
run_app <- function() {
  appDir <- system.file("shiny-examples", "app", package = "uvvisR")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `uvvisR`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
adsteen/uvvisR documentation built on Jan. 25, 2020, 12:42 a.m.