R/runDemo.R

Defines functions runDemo

Documented in runDemo

#' Run Shiny App Demo
#'
#' @return launches the RShiny demo
#' @export
#'
#' @examples
#' \dontrun{
#'   runDemo()
#' }
runDemo <- function() {
  appDir <- system.file("shiny-examples", "app", package = "finnsurveytext")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `finnsurveytext`.", call. = FALSE)
  }

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

Try the finnsurveytext package in your browser

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

finnsurveytext documentation built on April 4, 2025, 5:07 a.m.