R/launch-app.R

Defines functions launch_app

Documented in launch_app

# app

#' Launch cantabrica-app
#' @export launch_app
#' @importFrom shiny shinyAppDir
launch_app <- function(){
    app_dir <- system.file("app", package = "cantabricar")
    if (!dir.exists(app_dir)) {
        stop("Could not find example directory. Try re-installing cantabricar.", call. = FALSE)
    }
    shinyAppDir(app_dir, options = list(display.mode = "normal", launch.browser = TRUE))
}
cantabricagr/cantabricar documentation built on Dec. 19, 2021, 1:48 p.m.