R/run_fisheries_app.R

Defines functions run_fisheries_app

Documented in run_fisheries_app

#' Run the App
#'
#' Run the fishing industries app
#'
#' @author Nathan Eastwood
#'
#' @export
run_fisheries_app <- function() {
  app_dir <- system.file("app", package = "kamino")
  if (app_dir == "") {
    stop(
      paste0(
        "Could not find example directory. Try re-installing ",
        "`kamino`."
      ),
      call. = FALSE
    )
  }
  
  shiny::runApp(app_dir, display.mode = "normal")
}
datasciencecampus/kamino documentation built on May 20, 2019, 5:57 p.m.