R/eSDM_GUI.R

Defines functions eSDM_GUI

Documented in eSDM_GUI

#' Open the eSDM GUI
#'
#' Open the eSDM graphical user interface (GUI);
#'   an R Shiny app for creating ensemble predictions using SDM predictions.
#'
#' @param launch.browser Logical with default of \code{TRUE}; passed to \code{launch.browser}
#'   argument of \code{\link[shiny]{runApp}}
#'
#' @usage eSDM_GUI(launch.browser = TRUE)
#'
#' @seealso \url{https://smwoodman.github.io/eSDM/}
#'
#' @export
eSDM_GUI <- function(launch.browser = TRUE) {
  appDir <- system.file("shiny", package = "eSDM")
  if (appDir == "") {
    stop("The eSDM GUI folder could not be found. Try re-installing 'eSDM'",
         call. = FALSE)
  }

  runApp(appDir, launch.browser = launch.browser, display.mode = "normal")
}

Try the eSDM package in your browser

Any scripts or data that you put into this service are public.

eSDM documentation built on Oct. 25, 2023, 1:08 a.m.