R/runApp.R

Defines functions runSIAT

Documented in runSIAT

#!/usr/bin/Rscript

#' Launch SIAT GUI
#'
#' This function run the GUI shiny interface to run SIAT
#'
#' @examples
#' runSIAT()
runSIAT <- function() {
  appDir <- system.file("app", package = "SIAT")
  if (appDir == "") {
    stop("Could not find myapp. Try re-installing `mypackage`.", call. = FALSE)
  }
  if(Sys.getenv('SHINY_PORT') == "") options(shiny.maxRequestSize=10000*1024^2) #pour éviter de surcharger les serveurs
  shiny::runApp(appDir = appDir,launch.browser = TRUE)
}
Aucomte/SLAT documentation built on Oct. 12, 2021, 3:19 p.m.