R/shiny_app.R

Defines functions launch_metaconfoundr_app

Documented in launch_metaconfoundr_app

#' Launch metaconfoundr Shiny app
#'
#' `launch_metaconfoundr_app()` launches a Shiny app to create visualizations of
#' confounding control in meta-analyses
#'
#' @export
#' @return A Shiny app
launch_metaconfoundr_app <- function() {
  app_dir <- system.file("shiny_app", package = "metaconfoundr")
  if (app_dir == "") {
    stop("Shiny app not found. Try re-installing `metaconfoundr`.", call. = FALSE)
  }

  shiny::runApp(app_dir, display.mode = "normal")
}

Try the metaconfoundr package in your browser

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

metaconfoundr documentation built on Jan. 18, 2023, 1:10 a.m.