R/app_run.R

Defines functions app_run

Documented in app_run

#' Run a Web User Interface
#'
#' Run a Shiny application locally to analyse an xlsx file.
#'
#' @export
app_run <- function() {
  # Supress Shiny's auto-load behaviour
  old <- options(shiny.autoload.r = FALSE)
  on.exit(options(old), add = TRUE)

  addResourcePath('img', system.file('app/img', package = 'evavelo'))

  shiny::shinyApp(
    ui = app_ui,
    server = app_server
  )
}
JMPivette/evavelo documentation built on April 8, 2023, 4:20 p.m.