R/runExample.R

Defines functions runExample

Documented in runExample

#' @title Launch Shiny app
#' 
#' @description Launch Shiny app 
#' 
#' @import shiny shinydashboard
#' @export
#' 
#' 
#' @keywords internal


runExample <- function() {
  appDir <- system.file("shiny-examples", "myapp", package = "iAdapt")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing iAdapt", call. = FALSE)
  }
   shiny::runApp(appDir, display.mode = "normal")
}
alyssamv/iAdapt documentation built on Aug. 28, 2019, 6:49 p.m.