Learn R Programming

rstudioapi (version 0.17.0)

getMode: Report whether RStudio Desktop or RStudio Server is in use

Description

Use getMode() if you need to differentiate between server and desktop installations of RStudio.

Usage

getMode()

Arguments

Value

"desktop" for RStudio Desktop installations, and "server" for RStudio Server / RStudio Workbench installations.