Package: googleAuthR 2.0.2

Erik Grönroos

googleAuthR: Authenticate and Create Google APIs

Create R functions that interact with OAuth2 Google APIs <https://developers.google.com/apis-explorer/> easily, with auto-refresh and Shiny compatibility.

Authors:Mark Edmondson [aut], Erik Grönroos [cre], Jennifer Bryan [ctb], Johann deBoer [ctb], Neal Richardson [ctb], David Kulp [ctb], Joe Cheng [ctb], Cheryl Isabella Lim [ctb]

googleAuthR_2.0.2.tar.gz
googleAuthR_2.0.2.zip(r-4.7)googleAuthR_2.0.2.zip(r-4.6)googleAuthR_2.0.2.zip(r-4.5)
googleAuthR_2.0.2.tgz(r-4.6-any)googleAuthR_2.0.2.tgz(r-4.5-any)
googleAuthR_2.0.2.tar.gz(r-4.7-any)googleAuthR_2.0.2.tar.gz(r-4.6-any)
googleAuthR_2.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
googleAuthR/json (API)

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

Bug tracker:https://github.com/markedmondson1234/googleauthr/issues

Pkgdown/docs site:https://code.markedmondson.me

On CRAN:

Conda:

apiauthenticationgooglegoogleauthroauth2-flowshiny

13.27 score 180 stars 13 packages 994 scripts 38k downloads 55 exports 21 dependencies

Last updated from:4e00724150. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK154
source / vignettesOK214
linux-release-x86_64OK151
macos-release-arm64OK153
macos-oldrel-arm64OK191
windows-develOK99
windows-releaseOK79
windows-oldrelOK78
wasm-releaseOK158

Exports:gar_api_generatorgar_api_keygar_api_pagegar_attach_auto_authgar_authgar_auth_configuregar_auth_servicegar_auto_authgar_batchgar_batch_walkgar_cache_emptygar_cache_get_locgar_cache_setupgar_check_existing_tokengar_create_api_objectsgar_create_api_skeletongar_create_packagegar_deauthgar_debug_parsinggar_discovery_apigar_discovery_apis_listgar_gce_authgar_gce_auth_defaultgar_gce_auth_emailgar_has_tokengar_oauth_appgar_scope_configgar_service_creategar_service_getgar_service_get_rolesgar_service_grant_rolesgar_service_keygar_service_key_listgar_service_listgar_service_provisiongar_set_clientgar_setup_auth_checkgar_setup_auth_keygar_setup_check_sessiongar_setup_clientidgar_setup_edit_renvirongar_setup_env_checkgar_setup_get_authenvgar_setup_menugar_setup_menu_dogar_shiny_authgar_shiny_auth_urlgar_shiny_login_uigar_shiny_uigar_tokengar_token_infogoogleSignIngoogleSignInUIsilent_authskip_if_no_env_auth

Dependencies:askpassassertthatcachemclicurldigestfastmapfsgarglegluehttrjsonlitelifecyclememoisemimeopensslR6rappdirsrlangsyswithr

Google authentication types for R
Other more modern libraries | Version 2.0 | Quick user based authentication | Client options | Multiple authentication tokens | googleAuthR > 1.0.0 | Setting the client via Google Cloud client JSON | Authentication with no browser | Authentication with a JSON file via Service Accounts | Roles | Creating service account and a key | From R | WebUI | Authentication within Shiny | Types of Shiny Authentication | Shiny Modules | Shiny Authentication Examples | URL redirects | gar_shiny_* functions example | googleSignIn module example | Auto-authentication | Authentication on Google Cloud | Authentication on Kubernetes via workload identity | Revoking Authentication

Last update: 2024-05-20
Started: 2016-11-24

Troubleshooting Authentication
Helpful Resources | Setting your own client ID | Understanding authentication | gar_auth() options | Common errors | Tips and tricks

Last update: 2024-05-20
Started: 2017-10-20

Advanced Google API building techniques
Advanced API building techniques | Setup wizard helpers | Paging API responses | Skip parsing | Batching API requests | Setting batch endpoint | Working with batching | Walking through batch requests | Caching API calls | Other cache functions | Invalidating cache | Batching and caching | Using caching | Tests | Codecov | Offline code coverage

Last update: 2023-04-11
Started: 2017-10-13

Google API Setup
Install | Set up steps | For local use | For Shiny use | Activate API

Last update: 2020-12-03
Started: 2016-11-24

Building your own Google R library
Build a Google API library for R | Generating your function | Using your generated function | Body data | Parsing data | Auto-build libraries | Auto-build all libraries | Creating an API library from scratch - Example with goo.gl | Example goo.gl R library | Creating a Google Calendar list

Last update: 2020-04-25
Started: 2016-11-24

Readme and manuals

Help Manual

Help pageTopics
googleAuthR data fetch function generatorgar_api_generator
Takes a generated API function and lets you page through resultsgar_api_page
Auto Authentication function for use within .onAttachgar_attach_auto_auth
Authorize 'googleAuthR'gar_auth
Edit and view auth configurationgar_api_key gar_auth_configure gar_oauth_app
JSON service account authenticationgar_auth_service
Perform auto authenticationgar_auto_auth
Turn a list of gar_fetch_functions into batch functionsgar_batch
Walk data through batchesgar_batch_walk
Setup where to put cachegar_cache_empty gar_cache_get_loc gar_cache_setup
Check a token vs optionsgar_check_existing_token
Create the API objects from the Discovery APIgar_create_api_objects
Create an API library skeletongar_create_api_skeleton
Create a Google API packagegar_create_package
Suspend authorizationgar_deauth
Read the diagnostic object returned on API parse errors.gar_debug_parsing
Get meta data details for specified Google APIgar_discovery_api
Get a list of Google API librariesgar_discovery_apis_list
Authenticate on Google Compute Enginegar_gce_auth
Authenticate via gcloud's application-default logingar_gce_auth_default
Get the service email via GCE metadatagar_gce_auth_email
Is there a token on hand?gar_has_token
Create or add scopes to configurationgar_scope_config
Work with service accounts via the APIgar_service_create gar_service_get gar_service_get_roles gar_service_grant_roles gar_service_key gar_service_key_list gar_service_list
Provision a service accountgar_service_provision
Setup the clientId, clientSecret and scopesgar_set_client
Check service key works via environment argumentgar_setup_auth_check
Create a service account for googleCloudRunnergar_setup_auth_key
Check for a client JSONgar_setup_clientid
Setup wizard help - asking users to edit .Renvirongar_setup_check_session gar_setup_edit_renviron
Setup wizard help - check if environment argument is setgar_setup_env_check
Setup wizard helper - add authentication file to .Renvirongar_setup_get_authenv
Setup wizard - introduction helpergar_setup_menu
Setup wizard help - the functions that will execute on different menu optionsgar_setup_menu_do
Create Authentication within Shiny's server.Rgar_shiny_auth
Make a Google Authorisation URL for Shinygar_shiny_auth_url
A login page for Shinygar_shiny_login_ui
Create a Google login before your Shiny UI launchesgar_shiny_ui
Produce configured tokengar_token
Get current token summarygar_token_info
googleAuthR: Easy Authentication with Google OAuth2 APIsgoogleAuthR-package googleAuthR
Google SignIn [Server Module]googleSignIn
Google SignIn [UI Module]googleSignInUI
Silent authsilent_auth
Skip test if not authenticatedskip_if_no_env_auth