xtensor-stack / xtensor-r

R bindings for xtensor
BSD 3-Clause "New" or "Revised" License
86 stars 15 forks source link

[R CMD check] NOTE: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ #20

Open SylvainCorlay opened 7 years ago

SylvainCorlay commented 7 years ago

The R check for the generated cran package triggers the following warning (NOTE):

File ‘xtensor/libs/xtensor.so’:
  Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
It is good practice to register native routines and to disable symbol
search.
SylvainCorlay commented 7 years ago

More material on this here: https://github.com/RcppCore/Rcpp/issues/636

vankampen92 commented 6 years ago

Did you find a way to get rid of this NOTE?

I am getting this after doing:

devtools::build_win()

of a package I am developing.

ekalosak commented 4 years ago

If you're still hunting for a solution: there's a nice code generator that will register the native functions with R compliant with the current Writing R Extensions section 5.4. This works for most user-generated packages.