嗨,我是gspread的新手,我想把我的项目放在闪亮的io中。但是,当我这样做时,我使用
从连接读取错误pwd <- getwd()
HTTR_OAUTH <- c(pwd) %>% file.path(".httr-oauth")
HTTR_OAUTH <- HTTR_OAUTH[HTTR_OAUTH %>% file.exists()]
if(length(HTTR_OAUTH) > 0) {
HTTR_OAUTH <- HTTR_OAUTH[1]
file.copy(from = HTTR_OAUTH, to = ".httr-oauth", overwrite = TRUE)
}
我想知道是否有办法让它成为闪亮的io它要求你登录谷歌,或者如果你能在R剧本中提供gspread的用户名和密码。
答案 0 :(得分:1)
注意包已重命名:
https://github.com/jennybc/googlesheets
至于与Shiny的集成,请参阅最近包含shinyga
支持的googlesheets
包及其身份验证方法: