• Stars
    star
    169
  • Rank 216,947 (Top 5 %)
  • Language
    R
  • License
    Other
  • Created over 8 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Google API Client Library for R. Easy authentication and help to build Google API R libraries with OAuth2. Shiny compatible.

googleAuthR - Google API R Client

gargle backend

As of version googleAuthR>=1.0.0 the OAuth2 and service JSON authentication is provided by gargle. Refer to that documentation for details.

The plan is to migrate as much functionality to gargle from googleAuthR, but backward compatibility will be maintained for all packages depending on googleAuthR in the meantime.

Once there is feature parity, client packages can then migrate totally to gargle. At time of writing some of the major features not in gargle yet are:

  • Shiny authentication flows
  • Paging
  • Caching
  • Batching

If you are not using the above then you can use gargle directly now. Otherwise you can still use googleAuthR that will use the features of gargle and wait for more features to be migrated.

Overview

This library allows you to authenticate easily via local use in an OAuth2 flow; within a Shiny app; or via service accounts.

The main two functions are gar_auth() and gar_api_generator().

gar_auth

This takes care of getting the authentication token, storing it and refreshing. Use it before any call to a Google library.

gar_api_generator

This creates functions for you to use to interact with Google APIs. Use it within your own function definitions, to query the Google API you want.

Summary

Auto-build libraries for Google APIs with OAuth2 for both local and Shiny app use.

Get more details at the googleAuthR website

The googleAuthRverse Slack team has been setup for support for using googleAuthR and the libraries it helps create. Sign up via this Google form to get access.

R Google API libraries using googleAuthR

Here is a list of available Google APIs to make with this library. The below libraries are all cross-compatible as they use googleAuthR for authentication backend e.g. can use just one OAuth2 login flow and can be used in multi-user Shiny apps.

Feel free to add your own via email or a pull request if you have used googleAuthR to build something cool.

googleAuthR now has an R package generator which makes R package skeletons you can use to build your own Google API R package upon. Browse through the 154 options at this Github repository.

Thanks to

Install

googleAuthR is available on CRAN

install.packages("googleAuthR")

Check out News to see the features of the development version.

If you want to use the development version on Github, install via:

remotes::install_github("MarkEdmondson1234/googleAuthR")

More Repositories

1

ga-dashboard-demo

A demo on how to build your own Google Analytics dashboard with R, Shiny and MySQL
R
121
star
2

searchConsoleR

R interface with Google Search Console API v3, including Search Analytics.
R
110
star
3

gentelellaShiny

R
95
star
4

googleCloudRunner

Easy R scripts on Google Cloud Platform via Cloud Run, Cloud Build and Cloud Scheduler
R
78
star
5

serverless-R-API-appengine

Describes how to deploy an R API using Plumber onto App Engine and using Cloud Endpoints
R
77
star
6

langchain-github

Python
65
star
7

Shiny-R-SaaS

Bootstrap a paid R SaaS using Shiny, Firebase and Paddle
R
60
star
8

BigQuery-Visualiser

A Shiny app to visualise BigQuery data in R. Open sourced so you can deploy on your own Shiny server.
R
49
star
9

edmonbrain

A Langchain driven project to create flexible LLM bots on Google Cloud Platform
Python
37
star
10

shinyga

shinyga - Shiny Google Authentication. Quick start user authentication for Google Analytics
R
35
star
11

dartistics.com

Tutorial R website tailored for digital web analysts
HTML
31
star
12

cloudRunR

Running R on Cloud Run
R
31
star
13

ga-bq-stream

Stream JSON data into BigQuery
Python
30
star
14

autoGoogleAPI

Unofficial Google R packages. These are a collection of Google API R packages auto-generated by googleAuthR v0.5
R
25
star
15

code-examples

Code for Learning Google Analytics book
Python
24
star
16

gago

Google Analytics for Go
Go
22
star
17

predictClickOpenCPU

Code for the prediction example from user webpages
HTML
20
star
18

googleMeasureR

Send tracking hits to Google Analytics from R code using the Google Analytics Measurement Protocol
R
17
star
19

youtubeAnalyticsR

YouTube Analytics API into R
R
17
star
20

appengine-shiny

Looking at deploying Shiny apps on Google App Engine with flexible containers
R
17
star
21

googleID

Authentication and identifying Google users using Google+ API
R
14
star
22

verbal_ga_shiny

Talking Google Analytics reports in Shiny
R
14
star
23

google-analytics-cloud-functions

Some cloud functions helpful to Google Analytics
Python
12
star
24

appengine-rstudio

Experiment deploying Rstudio to Google AppEngine
11
star
25

realtimeShiny

R
9
star
26

stripeR

Interface between Stripe API and R
R
8
star
27

r-twitter-api-ggplot2

Demo plotting Twitter API data in R, using library(ggplot2) and library(twitteR)
R
8
star
28

ga-get-to-post

Call me a GET gif with the correct parameters and you get a POST to your GA account
Python
6
star
29

gtm-redirect-tracker

Track in GTM Server Side using redirects
Smarty
6
star
30

docker-shiny-server

Shiny Server for me
6
star
31

gtmR

R
6
star
32

unsampledGAData

A simple Shiny app to request unsampled GA data
R
6
star
33

edmonlytica-browser-template

Edmonlytica is a proof of concept for making your own digital analytics stream using GTM Server Side and BigQuery.
Smarty
6
star
34

gentelellaShiny_nopackage

gentelella bootstrap theme as a Shiny HTML template
HTML
5
star
35

edmonlytica-server-side-client

Edmonlytica is a proof of concept for making your own digital analytics stream using GTM Server Side and BigQuery.
Smarty
4
star
36

antiFakeNews

R
4
star
37

measurementProtocol

Use R to send server-side tracking data to Google Analytics 4. https://developers.google.com/analytics/devguides/collection/protocol/ga4
R
4
star
38

MarkEdmondson1234.github.io

Website
HTML
2
star
39

alphago

Animated visualisations of historical Go matches
R
2
star
40

edmonlytica-server-side-tag

Edmonlytica is a proof of concept for making your own digital analytics stream using GTM Server Side and BigQuery.
Smarty
2
star
41

r-code-commit-github

Example of running R code on a schedule to commit a file to GitHub
2
star
42

timehumps

Examine how sources influence others over time
R
2
star
43

MarkEdmondson1234

Me
2
star
44

anomaly_detection_Rmail_alert

This script pulls time series data from Mixpanel and checks to see whether anomalies are present using Twitters AnomalyDetection package in R
R
2
star
45

entropyMatrixViz

Visualisation of matrix binary grids entropy
R
1
star
46

googleAnalyticsRv4Demo

R
1
star
47

ga_model_pins

ga_models that can be fetched with library(pins)
1
star
48

gdelt_brand_monitoring

Exploring if brand monitoring is doable using GDELT
R
1
star
49

utilities

Helpful functions
R
1
star
50

dotfiles

Its my dotfiles
1
star
51

shiny-real-time-chart

R
1
star