I've been strangling with an unresolved 'R_registerRoutines', 'R_useDynamicSymbols' note from R CMD check. I have read the relevant Section in the 'Writing R Extensions' and also checked various other posts online but the problem persists.
Summary of what I have done:
- I created the
init.cfile put in thesrc/directory with the following content given in [1] below. This was done usingtools::package_native_routine_registration_skeleton(".", "src/init.c", character_only = FALSE)(because with the defaultcharacter_only = TRUEwas not working). - I checked if the same names appear in
RcppExports.cppinsrc/andRcppExports.RinR/given in [2] below. - I have added
useDynLib(JMbayes, .registration = TRUE)in the NAMESPACE.
Hence, any pointers would be welcome!