inst/shiny-examples/area/runDemo.R

#' @export
runDemo <- function() {
    appDir <- system.file("shiny-examples", "area", package = "pkghw4g3")
    if (appDir == "") {
        stop(
            "Could not find example directory. Try re-installing pkghw4g3.",
            call. = FALSE
        )
    }

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

}
ptds2021/pkghw4g3 documentation built on Dec. 22, 2021, 9:58 a.m.