R/runInterface.R

Defines functions runInterface

Documented in runInterface

#' @export
runInterface <- function() {
  if (!requireNamespace("shiny", quietly = TRUE)) {
    stop("Package \"shiny\" needed for this function to work. Please install it.", call. = FALSE)
  }
  appDir <- system.file("shiny-examples", "qmethod-gui", package = "qmethod")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `qmethod`.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}

Try the qmethod package in your browser

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

qmethod documentation built on April 1, 2023, 12:18 a.m.