Safely access RStudio's API (when available)
rstudio/rstudioapi has 174 GitHub stars.
It currently ranks #9343 daily, #10493 weekly, #14239 monthly by momentum on Trending Repos; its best-ever rank is #2689.