assertive.reflection (version 0.0-5)

is_rstudio_desktop: Is RStudio running in desktop or server mode?

Description

Checks for RStudio desktop or server version.

Usage

is_rstudio_desktop()

is_rstudio_server()

Arguments

References

The values that RStudio uses for its mode are defined in https://github.com/rstudio/rstudio/blob/master/src/cpp/session/include/session/SessionConstants.hpp via the constants kSessionProgramModeDesktop and kSessionProgramModeServer.

See Also

is_rstudio, is_rstudio_current

Examples

# NOT RUN {
is_rstudio_desktop()
is_rstudio_server()
# }