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