inst/app/simple_app_backup/RunApp.R

#' RunApp
#'
#' @details This function launches the application located in inst/ directory
#'
#' @return Opens an interactive ShinnyApp window
#'
#' @export
#'
#' @importFrom shiny runApp
#'
#' @examples
#'\dontrun{
#' RunApp()
#'                }

RunApp <- function() {
  # appDir <- system.file("app", package = "TreeData")
  appDir <- "inst/app"
  if (appDir == "") {
    stop("Could not find the Shiny app. Try re-installing the `TreeData` package.", call. = FALSE)
  }

  runApp(appDir, display.mode = "normal")
}
VincyaneBadouard/TreeData documentation built on Jan. 4, 2024, 2:56 a.m.