Package: gargle 1.6.1.9000

Jennifer Bryan

gargle: Utilities for Working with Google APIs

Provides utilities for working with Google APIs <https://developers.google.com/apis-explorer>. This includes functions and classes for handling common credential types and for preparing, executing, and processing HTTP requests.

Authors:Jennifer Bryan [aut, cre], Craig Citro [aut], Hadley Wickham [aut], Google Inc [cph], Posit Software, PBC [cph, fnd]

gargle_1.6.1.9000.tar.gz
gargle_1.6.1.9000.zip(r-4.7)gargle_1.6.1.9000.zip(r-4.6)gargle_1.6.1.9000.zip(r-4.5)
gargle_1.6.1.9000.tgz(r-4.6-any)gargle_1.6.1.9000.tgz(r-4.5-any)
gargle_1.6.1.9000.tar.gz(r-4.7-any)gargle_1.6.1.9000.tar.gz(r-4.6-any)
gargle_1.6.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gargle/json (API)
NEWS

# Install 'gargle' in R:
install.packages('gargle', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-lib/gargle/issues

Pkgdown/docs site:https://gargle.r-lib.org

On CRAN:

Conda:

authenticationgoogle

16.07 score 113 stars 200 packages 379 scripts 454k downloads 63 exports 15 dependencies

Last updated from:27b2c3ac73. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK150
source / vignettesOK224
linux-release-x86_64OK171
macos-release-arm64OK87
macos-oldrel-arm64OK99
windows-develOK117
windows-releaseOK110
windows-oldrelOK102
wasm-releaseOK120

Exports:AuthStatebulletizecheck_is_service_accountcred_funs_addcred_funs_clearcred_funs_listcred_funs_list_defaultcred_funs_setcred_funs_set_defaultcredentials_app_defaultcredentials_byo_oauth2credentials_external_accountcredentials_gcecredentials_service_accountcredentials_user_oauth2field_maskgargle_api_keygargle_appgargle_clientgargle_error_messagegargle_last_contentgargle_last_responsegargle_map_cligargle_oauth_cachegargle_oauth_clientgargle_oauth_client_from_jsongargle_oauth_client_typegargle_oauth_emailgargle_oauth_sitrepgargle_oob_defaultgargle_verbosityGargle2.0gargle2.0_tokengce_access_tokengce_instance_service_accountsGceTokeninit_AuthStatelocal_cred_funslocal_gargle_verbosityoauth_app_from_jsonoauth_external_tokenrequest_buildrequest_developrequest_makerequest_retryresponse_as_jsonresponse_processsecret_decrypt_jsonsecret_encrypt_jsonsecret_has_keysecret_make_keysecret_read_rdssecret_write_rdstidyverse_api_keytidyverse_apptidyverse_clienttoken_emailtoken_fetchtoken_tokeninfotoken_userinfoWifTokenwith_cred_funswith_gargle_verbosity

Dependencies:askpassclicurlfsgluehttrjsonlitelifecyclemimeopensslR6rappdirsrlangsyswithr

Auth when using R from the browser

Rendered fromauth-from-web.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2019-08-16

How gargle gets tokens

Rendered fromhow-gargle-gets-tokens.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2019-04-18

How to get your own API credentials

Rendered fromget-api-credentials.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2019-06-11

How to use gargle for auth in a client package

Rendered fromgargle-auth-in-client-package.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2019-01-30

Non-interactive auth

Rendered fromnon-interactive-auth.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2019-07-01

Request helper functions

Rendered fromrequest-helper-functions.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2019-02-25

Transition from OAuth app to OAuth client

Rendered fromoauth-client-not-app.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2023-05-24

Troubleshooting gargle auth

Rendered fromtroubleshooting.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2026-01-28
Started: 2020-05-01

Readme and manuals

Help Manual

Help pageTopics
Authorization stateAuthState AuthState-class
Credential function registrycred_funs cred_funs_add cred_funs_clear cred_funs_list cred_funs_list_default cred_funs_set cred_funs_set_default local_cred_funs with_cred_funs
Load Application Default Credentialscredentials_app_default
Load a user-provided tokencredentials_byo_oauth2
Get a token for an external accountcredentials_external_account
Get a token from the Google metadata servercredentials_gce
Load a service account tokencredentials_service_account
Get an OAuth token for a usercredentials_user_oauth2
Generate a field maskfield_mask
Create an OAuth client for Googlegargle_oauth_client gargle_oauth_client_from_json
OAuth token situation reportgargle_oauth_sitrep
Options consulted by garglegargle_oauth_cache gargle_oauth_client_type gargle_oauth_email gargle_oob_default gargle_options gargle_verbosity local_gargle_verbosity with_gargle_verbosity
Encrypt/decrypt JSON or an R objectgargle_secret secret_decrypt_json secret_encrypt_json secret_has_key secret_make_key secret_read_rds secret_write_rds
Generate a gargle tokengargle2.0_token
List all service accounts available on this GCE instancegce_instance_service_accounts
Create an AuthStateinit_AuthState
Build a Google API requestrequest_build request_develop
Make a Google API requestrequest_make
Make a Google API request, repeatedlyrequest_retry
Process a Google API responsegargle_error_message response_as_json response_process
Fetch a token for the given scopestoken_fetch
Get info from a tokentoken-info token_email token_tokeninfo token_userinfo