r-lib / gargle

Infrastructure for calling Google APIs from R, including auth
https://gargle.r-lib.org/
Other
113 stars 33 forks source link

Consult an env var to detect RStudio Server / Workbench #238

Closed jennybc closed 1 year ago

jennybc commented 1 year ago

Motivation is to correctly detect that we're on Workbench even from an R session running inside a terminal.

The approach that uses rstudioapi doesn't work inside such subprocesses.