R/runshinygap.R

#' Start shinygap
#'
#' @param ... Additional arguments passed to the 'runApp' function from the 'shiny' package.
#' @return These are design specific.
#' @export
#'
#' @details
#' This function starts the interactive 'shinygap' shiny web application that allows for flexible model specification.
#'
#' The 'shiny' based web application allows for flexible model specification for the implemented study designs.

runshinygap <- function (...)
{
    if (requireNamespace("shiny", quietly = TRUE)) {
        message("Starting the EnsDb shiny web app. Use Ctrl-C to stop.")
        shiny::runApp(appDir = system.file("shinygap",
            package = "gap"), ...)
    }
    else {
        stop("Package shiny not installed!")
    }
}

Try the gap package in your browser

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

gap documentation built on Aug. 26, 2023, 5:07 p.m.