R/run_bkg.R

Defines functions run_bkg

Documented in run_bkg

#' Run the background fitting shiny app
#'
#' A wrapper for \code{shiny::runApp} to start the \code{powdR}
#' background fitting Shiny app.
#'
#' @param ... further arguments to pass to \code{shiny::runApp}
#'
#' @examples
#'
#' \dontrun{
#'
#' run_powdR()
#'
#' }
#'
#' @md
#' @export
run_bkg <- function(...) {

  app_dir <- system.file(paste0("shiny/background/"), package = "powdR")
  app <- shiny::runApp(app_dir, launch.browser = TRUE,  ...)

}

Try the powdR package in your browser

Any scripts or data that you put into this service are public.

powdR documentation built on Aug. 13, 2021, 5:08 p.m.