R/package.R

Defines functions run_shiny_example

Documented in run_shiny_example

#' mathcamp
#'
#' Miscellaneous code for 
#'
#' @name mathcamp
#' @importFrom shiny runApp
#' @docType package
NULL

#' Run Shiny app
#'
#' @param example Name of the example to run. One of: \Sexpr{paste(dQuote(dir(system.file('shiny', package='mathcamp'))), collapse=", ")}
#' @param ... Passed to \code{\link{runApp}}.
#' @return This function is run for the side effect of starting the shiny app.
#' @export
run_shiny_example <- function(example, ...) {
    runApp(file.path(system.file('shiny', package='mathcamp'), example), ...)
}
jrnold/pols_math_camp_2014 documentation built on May 20, 2019, 1:04 a.m.