Rcpp Package Doesn't Include Rcpp_Precious_Remove

Rcpp package doesn't include Rcpp_precious_remove

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:

Sample Image

Error: in m_str_extents_(x, fontname, fontsize, bold, italic, fontfile) : function 'Rcpp_precious_remove' not provided by package 'Rcpp'

The problematic function m_str_extents_() is from gdtools. So likely you have a recent version or gdtools compiled against an older version of Rccp. Try updating Rccp to version 1.0.7 with install.packages() and with a bit of hope it should work.

install.packages("Rcpp")

For reference same problem described on Rccp mailing list which can summarised with

TL;DR: update your library.



Related Topics



Leave a reply



Submit