Dont know how to better phrase this.
Each time I source a Rcpp file or even compile the whole package I get the warning message:
Warning message:
In loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘Rcpp,’
I previously assumed it was related to Rstudio so ignored it and the code still ran fine. I decided to install new Rstudi and still get the same warning.
Note that the warning claims there is no Rcpp, yet there is:
Rcpp::getRcppVersion()
[1] ‘1.0.11’
I am not quite sure howto handle the warning. Any help willbe appreciated.
NB: The code still loads and works fine. Just that the warning is annoying-- A warning indicates something is not right somewhere.
Up front: there's a comma somewhere where referencing Rcpp
.
If this were simply a matter of the package not available, we would see a clear single-quoted package name, instead there's punctuation inside of the quotes (intentionally lower-case here):
loadNamespace("rcpp")
# Error in loadNamespace("rcpp") : there is no package called ‘rcpp’
loadNamespace("rcpp,")
# Error in loadNamespace("rcpp,") : there is no package called ‘rcpp,’
It's easy to miss things like that in our scan, I suspect our eyes want to see 'rcpp',
instead.