R/runExample.R

Defines functions runExample

Documented in runExample

#' apivlam shiny result
#' @examples
#' ## Only run this example in interactive R sessions
#' if (interactive()) {
#'   runExample()
#' }
#' @import shiny
#' @export
runExample <- function() {
  appDir <- system.file("shiny-examples", "myapp", package = "apivalm")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `apivalm`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
Elmahi92/apivalm documentation built on Dec. 17, 2021, 6:27 p.m.