#' 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))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.