R/runExample.R

Defines functions runExample

Documented in runExample

#' Run a Shiny application presenting the "markdownInput" package.
#' @export
runExample <- function() {
  appDir <- system.file("ShinyExample", package = "markdownInput")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `markdownInput`.", call. = FALSE)
  }

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

Try the markdownInput package in your browser

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

markdownInput documentation built on Jan. 31, 2020, 5:07 p.m.