Here's the deal: I've installed RGoogleDocs package from OmegaHat repository and everything worked fine during installation, but when I try to load specific document (spreadsheet) it states that I'm unauthorised!
I did:
# installation
install.packages("RGoogleDocs", repos = "http://www.omegahat.org/R")
library(RGoogleDocs)
auth <- getGoogleAuth("[email protected]", "password")
con <- getGoogleDocsConnection(auth)
docs <- getDocs(con)
dtf <- getDocContent("documentname", con)
Error: Unauthorized
What's interesting here is that I can list all documents (I'm authorised to do that), but I'm not authorised to load any! O_o
If I type names(docs)
names of the documents appear, but I can't get their content! The same stands for "the spreadsheet method" stated on an official help page:
sheets.con <- getGoogleDocsConnection(getGoogleAuth("[email protected]", "password", service = "wise"))
> a <- getDocs(sheets.con)
Error in getDocs(sheets.con) :
problems connecting to get the list of documents