R/run_app.R

Defines functions run_app

Documented in run_app

#' @title A function launching the application
#'
#' @description The function launches the shiny application
#'
#' @export

run_app <- function() {
  app_dir <- system.file("shiny_app", package = "geography")

  if (app_dir == "") {
    stop("There is no the application directory.")
  }

  shiny::runApp(app_dir, display.mode = "normal")
}
kmarchlewski/geography documentation built on Jan. 1, 2021, 7:21 a.m.