rstudio / rstudioapi

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

rstudioapi::jobRunScript() should have option to not bring jobs pane to front #223

Open hadley opened 3 years ago

hadley commented 3 years ago

Possibly defaulting to TRUE? This would make it a bit make it a bit more pleasant to use in scripts.

dipterix commented 2 years ago

Couple of months ago I submitted an similar issue (https://github.com/rstudio/rstudio/issues/7516, https://github.com/rstudio/rstudio/issues/9575)

I think their answer was to run right after jobRunScript

rstudioapi::executeCommand("activateConsole", quiet = TRUE)

However, one thing I couldn't figure out is to run job scripts in vanilla mode (https://github.com/rstudio/rstudioapi/issues/180)