Google Analytics Reporting API R library
Accesses Analytics report data. This is an R package autogenerated via googleAuthR's Discovery API builder. The Google Documentation for this API is here.
- Auto generated R functions for every method and object in the API
- Passes CRAN checks in skeleton form
- Auto-creates R package files via
devtools - Auto-documentation of function arguments
- Type-checking of passed objects
- Ability to quickly add new features of the API as they are published.
Set the appropriate Google API scopes:
library(googleAuthR)
library(googleanalyticsreportingv4.auto)
options(googleAuthR.scopes.selected = c('https://www.googleapis.com/auth/analytics.readonly', 'https://www.googleapis.com/auth/analytics'))
gar_auth()See the documentation for the package starting at ?googleanalyticsreportingv4.auto
The intention is for these auto-generated packages to be used as a basis for proper R packages suitable for CRAN. Fork this package, and then use the generated functions and objects to make what you need. Things you may want to do are:
- Create parsing functions to make the API responses into more user-friendly forms
- Create wrapper functions and objects around the API calls into more user-friendly forms
- Create documentation, vignette's and examples