powered by
Checks for RStudio desktop or server version.
is_rstudio_desktop()is_rstudio_server()
is_rstudio_server()
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.
kSessionProgramModeDesktop
kSessionProgramModeServer
is_rstudio, is_rstudio_current
is_rstudio
is_rstudio_current
# NOT RUN { is_rstudio_desktop() is_rstudio_server() # }
Run the code above in your browser using DataLab