Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix NAMESPACE / usedynlib issue for package compilation #1
Comments
|
This was fixed by commenting out the background for future reference (or any Google search that might run into same issue)
While this fixed it too, it was a bit hacky since |
After updates in build process in Rcpp packages the previous roxygen2 tags didnt work anymore properly. I tried following steps in https://stackoverflow.com/questions/58132832/error-function-is-not-available-for-call-for-package-x but that didnt work out properly.
Note that in v0.6.4 the NAMESPACE file used only useDynLib; recently CRAN wants the
.registration=TRUEflag added. This lies at the root of not being able to compile the package anymore. Its somehow related to the .registration flag causing problems with function names not being found anymore. I think (!) this has to do with a name clash between RCPP and R function names that share the same name (described here about KernSmooth package https://cran.r-project.org/doc/manuals/r-release/R-exts.html) . Not sure how to resolve this since I am going in circles about having to add .registration=TRUE to compile properly and pass CRAN chekcs, but then function names not being found.