#Google Components####
> library(devtools)
> #devtools::install_github("tidyverse/googlesheets4")
> library(googlesheets4)
> library(googledrive)
> #library(googlesheets)
> library(gargle)
> library(httr)
> options(httr_oob_default=TRUE)
> options(gargle_oauth_email = "mygmail@gmail.com",
+ gargle_oauth_cache = "/home/cpac/")
> options(gargle_oauth_email = TRUE)
> drive_auth()
Enter authorization code: 4/yAGk1Clz0D6r5bSw0ffTPpLdGU-YaOSGgJIgb7ruy3zidJxijw--EJk
Error: Can't get Google credentials.
Are you running googledrive in a non-interactive session? Consider:
* `drive_deauth()` to prevent the attempt to get credentials.
* Call `drive_auth()` directly with all necessary specifics.
所以我可以弹出一个询问登录信息并为我生成身份验证代码的弹出窗口,但是一旦输入它就会被 R 拒绝,说它仍然无法获得我的 Google 凭据......任何帮助都非常非常非常感谢...我所有的报告都进入了 googlesheets,我无法弄清楚为什么这不再有效...