R/run_app.R

Defines functions run_app

Documented in run_app

#' @title Run landsatviewer shiny app
#' @param ... Additional arguments passed to `shiny::runApp`
#' @export
run_app <- function(...) {
  appDir <- system.file("shiny", "landsatviewer", package = "landsatviewer")
  if (appDir == "") {
    stop(
      "Could not find example directory. Try re-installing `landsatviewer`.",
      call. = FALSE
    )
  }

  shiny::runApp(appDir, display.mode = "normal", ...)
}
SilviaTerra/landsatviewer documentation built on Jan. 18, 2020, 12:13 a.m.