闪亮的应用程序(部署在Shinyapp.io中)可以在每次运行时下载并读取Google表格数据吗?
我正在使用以下代码并在本地工作,但是在shinnyapp.io上运行时却无法工作。
library(googledrive)
library(readxl)
library(xts)
drive_auth_config(active = FALSE)
drive_download(as_id("id_of_file"),overwrite = TRUE)
data <- read_excel("filename.xlxs")
日志文件中显示的错误消息:
通话:本地... tryCatch-> tryCatchList-> tryCatchOne-> 执行暂停value [3L]中的错误:对象 类型'closure'不可子集