R/run_shiny_app.R

Defines functions run_shiny_app

Documented in run_shiny_app

#' runs shiny app locally
#' @description
#' This function allows for local execution of the shiny app. Alternatively,
#' an online version of this app
#' \href{https://thijsjanzen.shinyapps.io/simRestoreApp/}{can be found here}.
#'
#' @return No return value
#' @export
run_shiny_app <- function() {
  appDir <- system.file("shiny-examples",
                        "simRestoreApp",
                        package = "simRestore")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `simRestore`.",
         call. = FALSE)
  }
  shiny::runApp(appDir, display.mode = "normal")
}

Try the simRestore package in your browser

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

simRestore documentation built on Nov. 17, 2023, 5:07 p.m.