Rcpp 包不包含 Rcpp_precious_remove [英] Rcpp package doesn't include Rcpp_precious_remove

查看:67
本文介绍了Rcpp 包不包含 Rcpp_precious_remove的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试创建一个数据库并安装了DBI"包,但我仍然面临这个错误.我重新安装了 DBI 和 RSQLite 包,但它们似乎不起作用.

库(DBI")con <- dbConnect(RSQLite::SQLite(), dbname = ":memory:")dbListTables(con)

错误:

<块引用>

connection_connect(dbname, loadable.extensions, flags, vfs, extended_types) 中的错误:包Rcpp"未提供函数Rcpp_precious_remove"

解决方案

我在使用另一个包时遇到了同样的问题,问题是我运行的是针对先前版本的 Rcpp<编译的最新版本的包/代码>.正如

I have been trying to create a database and installed the "DBI" package, but I am still facing this error. I reinstalled DBI and RSQLite package, but they don’t seem to work.

library("DBI")
con <- dbConnect
(RSQLite::SQLite(), dbname = ":memory:")
dbListTables(con)

Error:

Error in connection_connect(dbname, loadable.extensions, flags, vfs, extended_types) : function 'Rcpp_precious_remove' not provided by package 'Rcpp'

解决方案

I had the same problem with another package and the issue was that I was running a recent version of the package compiled against a previous version of Rcpp. As user20650 points out in the comment, updating Rcpp to 1.0.7 should fix it:

install.packages('Rcpp') 

In RStudio you can also use the packages panel to update the packages, as in the following image:

这篇关于Rcpp 包不包含 Rcpp_precious_remove的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆