R/runshiny.R

#' run shiny app
#' @export
#' @param port set port
runShinyApp <- function(port="127.0.0.1") {
    appDir <- system.file("shinyApp", package = "ALTRE")
    if (appDir == "") {
        stop(" The ShinyApp directory was not found.
             Try re-installing `ALTRE`.",
             call. = FALSE)
    }

    shiny::runApp(appDir, display.mode = "normal", host = getOption("shiny.host", port))
}
Mathelab/ALTRE documentation built on May 7, 2019, 3:41 p.m.