根据https://github.com/hammer/google-spreadsheets-to-r-dataframe上的指示: 我尝试通过以下方式登录:
sheets.con = getGoogleDocsConnection(getGoogleAuth(, , service = "wise")) spreadsheets = getDocs(sheets.con)
在第二行之后我得到了错误:
Error in function (type, msg, asError = TRUE) :
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
有什么问题,如何让它接受证书?
最佳答案
要么将 verifypeer=FALSE
传递给 RCurl::getURL:
sheets.con = getGoogleDocsConnection(getGoogleAuth(<name>,<psw>, service = "wise"))
spreadsheets = getDocs(sheets.con, ssl.verifypeer=FALSE)
或者转而传递 cainfo=system.file("CurlSSL", "cacert.pem", package = "RCurl")
。
关于r - 使用 RGoogleDocs 登录谷歌电子表格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20786901/