How to install RGoogleDocs (on Ubuntu)
RGoogleDocs is not available from CRAN, but from Omegahat.org. To install, sudo R, then
install.packages("RGoogleDocs", repos = "http://www.omegahat.org/R")
RGoogleDocs requires RCurl, and will automatically install it. However, for me, this resulted in the error message:
checking for curl-config... no Cannot find curl-config
and RGoogleDocs was not installed. This is in fact in the RCurl FAQ. The solution may differ for your system, but on Xubuntu Jaunty I needed to get:
sudo aptitude install libcurl4-gnutls-dev
This fixed the RCurl problem, but I installation of XML (also required, and also automatically installed when you install RGoogleDocs) failed with:
checking for xml2-config... no Cannot find xml2-config ERROR: configuration failed for package �XML�
You guessed it:
sudo aptitude install libxml2-dev
So here’s the whole thing for cut-and-paste:
sudo aptitude install libcurl4-gnutls-dev libxml2-dev
Then:
sudo R
Then, inside R:
install.packages("RGoogleDocs", repos = "http://www.omegahat.org/R")
Addendum
Just had to install RGoogleDocs again and had a different issue. It complained that it couldn’t get package bitops which seems to be a depenency for RCurl. First step (which I just learned):
install.packages("RGoogleDocs", repos = "http://www.omegahat.org/R", dependencies = TRUE)
was not sufficient in my case. Had to manually first
install.packages("bitops")
Addendum
Version 0.4.0, which you get from Omegahat, doesn’t work but throws an authentication failure when you try to load a spreadsheet.
Try version 0.4.1 (downloads a .tar.gz file). To install the file:
install.packages("~/downloads/RGoogleDocs_0.4-1.tar.gz",repos=NULL)
(of course, replace ~/downloads/ with the appropriate directory).
Doesn’t work for me (22/2/2011). I still get “unauthorized” when trying to access a document (I can access the list of documents just fine).
December 30th, 2010 at 10:34
Thanks! It works for me! (ubuntu 10.10)