R/shiny_example.r

Defines functions shiny_example

Documented in shiny_example

#' shiny_example
#'
#' Launch example shiny app for citygeocode package
#'
shiny_example <- function() {
  appDir <- system.file("shiny-examples", package = "citygeocoder")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `citygeocoder`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
cjtexas/citygeocoder documentation built on July 17, 2025, 12:05 a.m.