R/runExample.R

Defines functions runExample

Documented in runExample

#' Shiny app demoing the pkg.
#'
#' @export
runExample <- function() {
  appDir <- system.file("shiny-examples", package = "perfectcircle")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `perfectcircle`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
hoehleatsu/perfectcircle documentation built on Feb. 6, 2020, 10:13 p.m.