授权使用gspread包登录闪亮的io

时间:2015-03-27 19:44:41

标签: r google-docs google-docs-api

嗨,我是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的用户名和密码。

1 个答案:

答案 0 :(得分:1)

注意包已重命名:

https://github.com/jennybc/googlesheets

至于与Shiny的集成,请参阅最近包含shinyga支持的googlesheets包及其身份验证方法:

https://github.com/MarkEdmondson1234/shinyga