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