Skip to contents

The RStudio Addin (Addins > GT Regression app) opens GT Regression in an RStudio dialog window. It is the same application as gtregression_app(), which opens it in your web browser.

Usage

gtregression_addin()

Value

Invisibly returns the result of shiny::runGadget().

Details

There is no separate Addin interface: the interface, analyses, generated R code and access to data frames in your global environment are identical to gtregression_app(). Only the container differs (a 1200 x 800 RStudio dialog instead of a browser window). The shiny and rstudioapi packages are optional and are checked only when this function is called. Selected data frames are copied into the app as read-only snapshots; the source objects are not modified.

See also

Examples

if (
  interactive() &&
    requireNamespace("rstudioapi", quietly = TRUE) &&
    rstudioapi::isAvailable()
) {
  gtregression_addin()
}