Skip to navigation

How to install RGoogleDocs (on Ubuntu)

RGoogleDocs is not available from CRAN, but from To install, sudo R, then

install.packages("RGoogleDocs", repos = "")

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


sudo R

Then, inside R:

install.packages("RGoogleDocs", repos = "")


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 = "", dependencies = TRUE)

was not sufficient in my case. Had to manually first



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:


(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).

One Response to “How to install RGoogleDocs (on Ubuntu)”

  1. Emilio Says:

    Thanks! It works for me! (ubuntu 10.10)