The rstudioapi package provides access the RStudio API (if available) and provides informative error messages when it's not.
Installed Size: 523.3 kB Architectures: all