Installing the RGoogleAnalytics package

June 20, 2013
By

(This article was first published on Tatvic Blog » R, and kindly contributed to R-bloggers)

In this blog post, I would walk you through the steps from downloading to installing the RGoogleAnalytics package on your machine.

The RGoogleAnalytics package currently resides at https://code.google.com/p/r-google-analytics/ and this page lists the latest developments around the package. The zip and tarball archives for the package can be obtained from the Downloads Section.

Once you download the archive, fire up the RStudio interface and click on the Install Packages button in the Packages tab and select the Package Archive File option as shown in this screenshot.

 


Browse to the location containing the downloaded package archive and install it. Your RStudio console should then display the following messages :

As an aside, RGoogleAnalytics requires a couple of addtional packages for its working. These are : rjson, RCurl and bitops. These can be downloaded by clicking on Install Packages again, selecting Repository(CRAN, CRANExtra) and typing the package name.

Do let us know if this worked out for you. As a next step, you might be interested in learning how to extract Google Analytics data extraction in R. Here’s the link : http://www.tatvic.com/blog/ga-data-extraction-in-r/
Update : You might get a warning saying that the package is not available for R 3.0.0 or R 3.0.1. This is warning message specific to RStudio. While installing this package from RStudio, it will call getDependencies() to check its dependencies and also identify that whether the original  package exists on CRAN and throws the given warning when it doesn’t. As RGoogleAnalytics package is not on CRAN, hence the warning. and can be safely ignored. I hope this should be fixed up when RGoogleAnalytics is ported on CRAN. Doing the installation from default R console shall not fire this warning message.

Would you like to understand the value of predictive analysis when applied on web analytics data to help improve your understanding relationship between different variables? We think you may like to watch our Webinar – How to perform predictive analysis on your web analytics tool data. Watch the Replay now!

Kushan Shah

Kushan Shah

Kushan is a Web Analyst at Tatvic. His interests lie in getting the maximum insights out of raw data using R and Python.

Website - Twitter - Facebook - More Posts

To leave a comment for the author, please follow the link and comment on his blog: Tatvic Blog » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.