rstudio / rstudioapi

Safely access RStudio's API (when available)
http://rstudio.github.io/rstudioapi
Other
167 stars 36 forks source link

Expose what *Help > Check for Updates* does #252

Open jennybc opened 2 years ago

jennybc commented 2 years ago

devtools::dev_sitrep() gives a "situation report" on the user's dev tooling stack.

If we detect we're in RStudio, we try to detect if someone is running an outdated version of RStudio and suggest how to update. I think we're just emulating Help > Check for Updates.

Our method recently broke due to the change in RStudio version numbering (https://github.com/r-lib/devtools/issues/2397).

It would be great if this operation (get user's current version, hit the appropriate API or URL, parse and interpret those results) could be exposed in rstudioapi.