R/run_example.R

Defines functions run_example

Documented in run_example

#' @title The Shiny Program for the 'journalabbr' Package
#' @importFrom shiny runApp
#'
#' @export
#'
run_example <- function() {
  app_dir <- system.file("shiny-examples", "appckwx", package = "journalabbr")
  if (app_dir == "") {
    stop("Could not find example directory. Try re-installing `journalabbr`.", call. = FALSE)
  }
  runApp(app_dir, display.mode = "normal")
}

Try the journalabbr package in your browser

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

journalabbr documentation built on Aug. 9, 2022, 5:05 p.m.