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")
}

Try the iAdapt package in your browser

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

iAdapt documentation built on Aug. 6, 2021, 9:08 a.m.