Rcpp package doesn't include Rcpp_precious_remove

RRcpp

R Problem Overview


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'

R Solutions


Solution 1 - R

I had the same problem with the packages: raster, tmap and sf. Reinstalling the package Rcpp solved the problem:

install.packages('Rcpp')
library(Rcpp)

Solution 2 - R

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:

Enter image description here

Categories

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLaxmi AgarwalView Question on Stackoverflow
Solution 1 - RDanielaView Answer on Stackoverflow
Solution 2 - RMarcelo AvilaView Answer on Stackoverflow