Skip to contents

Detect whether the current R session is running in RStudio; used to decide if themes can be applied to the IDE.

Usage

on_rstudio()

Value

Logical; TRUE if running in RStudio, otherwise FALSE.

See also

Other helpers: generate_uuid()

Examples

on_rstudio()
#> ! Detected GUI: "X11".
#> [1] FALSE