Learn R Programming

googlesheets4 (version 0.1.0)

sheets_deauth: Suspend authorization

Description

Put googlesheets4 into a de-authorized state. Instead of sending a token, googlesheets4 will send an API key. This can be used to access public resources for which no Google sign-in is required. This is handy for using googlesheets4 in a non-interactive setting to make requests that do not require a token. It will prevent the attempt to obtain a token interactively in the browser. The user can configure their own API key via sheets_auth_configure() and retrieve that key via sheets_api_key(). In the absence of a user-configured key, a built-in default key is used.

Usage

sheets_deauth()

Arguments

See Also

Other auth functions: sheets_auth_configure(), sheets_auth()

Examples

Run this code
# NOT RUN {
if (interactive()) {
  sheets_deauth()
  sheets_user()

  # get metadata on the public 'deaths' spreadsheet
  sheets_get(sheets_example("deaths"))
}
# }

Run the code above in your browser using DataLab