我正在AWS"Ubuntu Server 12.04.2"上运行R Studio并通过我的浏览器访问R Studio.
当我尝试使用包googlesheets和代码验证google auth API时:
gs_auth(token = NULL, new_user = FALSE,
key = getOption("googlesheets.client_id"),
secret = getOption("googlesheets.client_secret"),
cache = getOption("googlesheets.httr_oauth_cache"), verbose = TRUE)
这里的问题是它将我重定向到本地机器(基于Windows)的浏览器.即使我授权它,它也会重定向到" http:// localhost:1410 /?state = blahblah&code = blahblah " 这样的网址.
在这种情况下如何授权googlesheets?
我甚至尝试从我的Windows机器上传输现有的httr-oauth令牌来删除ubuntu服务器.