Determine if current session is RStudio Server

isRstudioServer()

Examples

isRstudioServer() # returns FALSE or TRUE
#> [1] FALSE