R/runAnalysis.R

Defines functions runAnalysis

Documented in runAnalysis

#' Wrapper for lauching Shiny app
#'
#' @export
#'
#' @return NULL
#' @examples \dontrun{
#' runAnalysis()
#' }
runAnalysis <- function() {
  appDir <- system.file("shiny-app", "CarboLogR", package = "CarboLogR")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing CarboLogR package.", call. = FALSE)
  }
  # find and launch the app
  shiny::runApp(appDir, display.mode = "normal")
}
kevinVervier/CarboLogR documentation built on Sept. 25, 2019, 6:06 p.m.