R/run_rxylib.R

Defines functions run_rxylib

Documented in run_rxylib

#' Run rxylib shiny app
#' 
#' A wrapper for [`runApp`] to start interactive shiny apps for the R package rxylib.
#' The `app_RLum()` function is just a wrapper for [`runApp`]. 
#' Via the `...` argument further arguments can be directly passed to [`runApp`]. 
#' See `?shiny::runApp` for further details on valid arguments.
#' 
#' @param ... further arguments to pass to [`runApp`]
#' 
#' @author Johannes Friedrich, University of Bayreuth (Germany)
#' 
#' @examples 
#' 
#' \dontrun{
#' 
#' run_rxylib()
#' 
#' }
#' 
#' @seealso [`runApp`]
#' @md
#' @export
run_rxylib <- function(...) {
  
  # start application
  app_dir <- system.file(paste0("shiny/"), package = "rxylibShiny")
  app <- shiny::runApp(app_dir, launch.browser = TRUE,  ...)
}
JohannesFriedrich/rxylibShiny documentation built on May 14, 2019, 8:19 a.m.