问题描述
我从我们的 mongoDB 中查询了这个
data2 <- table$find(
query = '{"disabled" : true}',fields = '{"general.name" : true,"_id": true')
View(data)
看起来和我期望的一样,但是当我尝试使用 googlesheets4::write_sheet(data = data2,ss = "a google url",sheet = "a name")
它发出这样的信息:
Writing to "gsheetname"
Writing to sheet "a name"
Error: Don't kNow how to make an instance of `CellData` from something of class 'data.frame'.
创建 xls 或 csv 工作正常,但 gsheet 不行。来自 mongoDB 以外的其他来源的数据帧可以写入 gsheet。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)