R/run_app.R

Defines functions run_app

Documented in run_app

#' Launches the shiny app to generate reports.
#'
#' @return NULL
#'
#' @export
#' @import ruODK shiny rmarkdown shinyalert DT dplyr shinycssloaders
#'
#' @examples
#' \dontrun{
#' run_app()
#' }
run_app <- function() {

  appDir <- system.file("app", package = "repvisforODK")
  if (appDir == "") {
    stop("Could not find myapp. Try re-installing `mypackage`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
lucidviews/repvisForODK documentation built on Feb. 13, 2022, 9:50 p.m.