Installing the RGoogleAnalytics package

[This article was first published on Tatvic Blog » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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.

WebsiteTwitterFacebookMore Posts

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

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)