powered by
Use getMode() if you need to differentiate between server and desktop installations of RStudio.
getMode()
"desktop" for RStudio Desktop installations, and "server" for RStudio Server / RStudio Workbench installations.