【发布时间】:2022-01-23 05:19:25
【问题描述】:
我正在尝试抓取一些 pitchf/x 数据并将其存储在 SQLite 数据库中。但是,当我运行以下代码时收到以下错误:
library(RSQLite)
library(dplyr)
db <- src_sqlite("pitchfx.sqlite3", create = T)
这是错误:
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'drv' in selecting a method for function 'dbConnect': .onLoad failed in loadNamespace() for 'RSQLite', details:
call: NULL
error: 'hash' is not an exported object from 'namespace:rlang'
In addition: Warning message:
`src_sqlite()` is deprecated as of dplyr 1.0.0.
Please use `tbl()` directly with a database connection
This warning is displayed once every 8 hours.
我一直无法弄清楚如何解决这个问题。我已经重新安装了软件包,更新了 Rlang,重新启动了 R,但没有任何效果。我在 R 4.0.3 上。
【问题讨论】: