R/runShiny.R

Defines functions runShiny

Documented in runShiny

#' @export
runShiny <- function() {
  appDir <- system.file("shiny-examples", "myapp", package = "complexity")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `complexity`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}

Try the complexity package in your browser

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

complexity documentation built on March 18, 2022, 7:54 p.m.