0

I have a confidential spreadsheet I'd like to access via the RGoogleDocs library but am receiving an odd error. This same code worked yesterday in order to fetch the worksheet. It was failing on the sheetsAsMatrix call. Now I can't even fetch the worksheet at all. options(error=recover) doesn't tell me anything outside of the invalid token error message.

auth = getGoogleAuth("email@email.com", "password")
sheets.con = getGoogleDocsConnection(auth, service = "wise")

docs = getDocs(sheets.con)
names(docs)
 [1] "Testing Plan 0.1"                    
 [2] "All Events Template 11 1 13"

ts = getWorksheets("All Events Template 11 1 13", sheets.con)

Error in getDocs(con, what = "spreadsheets") : 
   problems connecting to get the list of documents: Token invalid (401)
4

1 回答 1

0

作为我自己的问题的解决方案,以防其他人也需要解决方法,我最终使用了 googlecl ( https://code.google.com/p/googlecl/ ) 并在 R 中执行了一个system调用来下载我的电子表格需要。XLConnect最后,我使用库将它读入 R。

于 2013-11-08T19:38:43.697 回答