This package is designed to work with the API Google Analytics in R.
Key features:
To install the latest release version from CRAN with:
install.packages("RGA")To install the development version the install_github() function from devtools package can be used:
devtools::install_github("artemklevtsov/RGA")Another method to install the package RGA (using the command line):
git clone https://github.com/artemklevtsov/RGA.git
R CMD build RGA
R CMD INSTALL RGA_*.tar.gzOnce you have the package loaded, there are 3 steps you need to use to get data from Google Analytics:
authorize() function;list_profiles() function;get_ga() for the Core Reporting APIget_mcf() for the Multi-Channel Funnels Reporting APIget_realtime() for the Real Time Reporting APIFor details about this steps please type into R:
library(help = "RGA")
browseVignettes(package = "RGA")First check the changes in the latest version of the package. Type type into R:
news(package = "RGA", Version == packageVersion("RGA"))Try reproduce a bug with the latest development version from Git.
Before posting a bug please try execute your code with the httr::with_verbose() wrapper. It will be useful if you attach verbose output to the bug report.
httr::with_verbose(list_profiles())
httr::with_verbose(get_ga("XXXXXXXX"))Post the traceback() and sessionInfo() output also may be helpful.
To report a bug please type into R:
utils::bug.report(package = "RGA")