rstudio / rstudioapi

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

Expose information about Git #89

Open jennybc opened 6 years ago

jennybc commented 6 years ago

It would be very handy to know the IDE's current impression of:

similar to what rmarkdown does for Pandoc, rmarkdown::pandoc_available() and rmarkdown::pandoc_version().

jdblischak commented 5 years ago

I agree. It would be very useful to know if the user is able to use Git via RStudio. For example, I found 20 vcs* commands that can be executed with rstudioapi::executeCommand() (source), but how can I know if these will work? As far as I can tell, executeCommand() always returns NULL regardless of whether the command succeeded or not.

xref: https://github.com/rstudio/rstudioapi/pull/130#issuecomment-470245700