R/shiny_app.R

Defines functions run_shiny_app

Documented in run_shiny_app

#' Run the shiny app.
#'
#' @examples
#' \dontrun{
#' # Starts the shiny app
#' run_shiny_app()
#' }
#' @import shiny
#' @name run_shiny_app
#' @export
run_shiny_app <- function(){
    app_directory <- system.file("example",
                                 package = "NeuralNetworkVisualization")
    if (app_directory == "") {
        stop("Could not find example directory. Try re-installing
             `NeuralNetworkVisualization`.", call. = FALSE)
    }
    return(runApp(app_directory, display.mode = "normal"))
}
AlexAfanasev/NeuralNetworkVisualization documentation built on Sept. 23, 2019, 2:29 a.m.