r-lib / gargle

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

Provide instructions for non-interactive auth on Connect, when publishing from Workbench #279

Open andrie opened 11 months ago

andrie commented 11 months ago

The vignette on Non-interactive auth provides instructions to provide the initial auth token based on the assumption that the interactive workflow is "local", i.e. a standalone instance of RStudio on a laptop (for example).

The workflow required for initiating this token is subtly different on Workbench.

In this case you must use the following gargle option:

options(gargle_oauth_client_type = "web")

IMO we can improve the docs by adding a small section to the Non-interactive auth vignette