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  href="https://code.google.com/p/r-google-analytics/">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.

 

href="http://www.tatvic.com/blog/wp-content/uploads/2013/06/image.png"> class="wp-image-4229 aligncenter" title="RStudio Screen" src="http://www.tatvic.com/blog/wp-content/uploads/2013/06/image-1024x575.png" alt="" width="700" /> href="http://www.tatvic.com/blog/wp-content/uploads/2013/06/image-1.png"> />

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

href="http://www.tatvic.com/blog/wp-content/uploads/2013/06/image-1.png"> class="wp-image-4231 aligncenter" title="R console" src="http://www.tatvic.com/blog/wp-content/uploads/2013/06/image-1.png" alt="" width="690" height="352" />

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 :  href="http://www.tatvic.com/blog/ga-data-extraction-in-r/" >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.

style="color:#2361A1">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. href="http://www.tatvic.com/perform-predictive-analysis-on-your-web-analytics-tool/?utm_source=post&utm_medium=blog&%23038;utm_campaign=webinar3" >Watch the Replay now!

class="wp-about-author-containter-top" style="background-color:#FFEAA8;"> class="wp-about-author-pic"> src="http://www.tatvic.com/blog/wp-content/uploads/userphoto/20.jpg" alt="Kushan Shah" width="60" class="photo" />
class="wp-about-author-text">

href='http://www.tatvic.com/blog/author/kushan/' title='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.

href='http://www.tatvic.com/' title='Kushan Shah'>Website – href='http://twitter.com/kushan_s' title='Kushan Shah on Twitter' rel='nofollow'>Twitter – href='https://www.facebook.com/kushan.shah1?ref=tn_tnmn' title='Kushan Shah on Facebook' rel='nofollow'>Facebook – href='http://www.tatvic.com/blog/author/kushan/' title='More posts by Kushan Shah'>More Posts

align="right" style="float: right; clear:left; padding: 0px 5px 0px 7px;"> name="fb_share" type="box_count" share_url="http://www.tatvic.com/blog/installing-the-rgoogleanalytics-package/">

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.

Top 3 Posts from the past 2 days

Top 9 articles of the week

  1. Scatterplots
  2. In-depth introduction to machine learning in 15 hours of expert videos
  3. The Single Most Important Skill for a Data Scientist
  4. Installing R packages
  5. Illustrated Guide to ROC and AUC
  6. Network analysis with igraph
  7. Using apply, sapply, lapply in R
  8. R vs Python: Survival Analysis with Plotly
  9. KDD Cup 2015: The story of how I built hundreds of predictive models….And got so close, yet so far away from 1st place!

Sponsors