1Access the RStudio API (if available) and provide informative error
2messages when it's not.
3