is.RStudio function

Checks if the R session is running within RStudio