R/shiny.R

Defines functions runMDPlot runsccp

Documented in runMDPlot runsccp

#' Shiny application for Short-Chain Chlorinated Paraffins analysis
#' @export
runsccp <- function() {
        file <- system.file("shinyapps", "sccp",
                            package = "enviGCMS")
        if (file == "") {
                stop("Could not find directory. Try re-installing `enviGCMS`.",
                     call. = FALSE)
        }
        shiny::runApp(file)
}
#' Shiny application for interactive mass defect plots analysis
#' @export
runMDPlot <- function() {
        file <- system.file("shinyapps", "MDPlot.rmd",
                            package = "enviGCMS")
        if (file == "") {
                stop("Could not find directory. Try re-installing `enviGCMS`.",
                     call. = FALSE)
        }
        rmarkdown::run(file)
}
yufree/enviGCMS documentation built on Sept. 12, 2023, 6:34 p.m.