##' runs the shiny app
##'
##' @details Relies on the app being in a file called `app.R` within `inst/shiny-examples/app/
##' @export
##' @example
##' # Type the following at the console to run the app
##' run_app()
run_app <- function() {
appDir <- system.file("shiny-examples", "app", package = "uvvisR")
if (appDir == "") {
stop("Could not find example directory. Try re-installing `uvvisR`.", call. = FALSE)
}
shiny::runApp(appDir, display.mode = "normal")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.