R/runExample.R

#' Title Example for shiny app
#'
#' @export
#' @importFrom shiny runApp
#'
runExample <- function() {
  AppDir <- system.file("examples", "app.R", package = "rLab5")
  if (AppDir == "") {
    stop("Could not find example directory. Try re-installing `rLab5`.", call. = FALSE)
  }

  shiny::runApp(AppDir, display.mode = "normal")
}
anubhav-dikshit/rLab5 documentation built on May 14, 2019, 7:17 p.m.