R/runRamanD2O.R

Defines functions runRamanD2O

Documented in runRamanD2O

#' Run RamanD2O Shiny App
#'
#' The entry point of shiny app.
#'
#' The source code is in the `shinyapp` subdirectory.
#'
#' @export
runRamanD2O <- function() {
  appDir <- system.file("shinyapp", package = "RamanD2O")
  if (appDir == "") {
    stop("Could not find shinyapp directory. Try re-installing `RamanD2O`.",
      call. = FALSE
    )
  }

  library(RamanD2O)
  shiny::runApp(appDir, display.mode = "normal")
}
gongyh/RamanD2O documentation built on Dec. 13, 2024, 8:39 a.m.