R/launchApp.R

Defines functions launchApp

Documented in launchApp

#' A wrapper function to run the included Shiny App
#' @export
#' @import shiny
launchApp <- function() {
    appDir <- system.file("shinyApp", package = "sensorOverlord")

    if (appDir == "") {
        stop(
            "Could not find the Shiny App directory. Try reinstalling sensorOverlord",
            call. = FALSE
        )
    }

    shiny::runApp(appDir, display.mode = "normal")
}
julianstanley/SensorOverlord documentation built on Oct. 19, 2020, 2:29 p.m.