I'd like to submit an updated version of an R package ot cran but it's failing because of the note:
Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
I tried the solution here: https://stackoverflow.com/a/42339658/3738150
Running tools::package_native_routine_registration_skeleton(".") yields
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>
/* FIXME:
Check these declarations against the C/Fortran source code.
*/
/* .C calls */
extern void rW(void *, void *, void *);
extern void ry_bing(void *, void *, void *);
extern void ry_bmf(void *, void *, void *, void *);
static const R_CMethodDef CEntries[] = {
{"rW", (DL_FUNC) &rW, 3},
{"ry_bing", (DL_FUNC) &ry_bing, 3},
{"ry_bmf", (DL_FUNC) &ry_bmf, 4},
{NULL, NULL, 0}
};
void R_init_rstiefel(DllInfo *dll)
{
R_registerRoutines(dll, CEntries, NULL, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}
which I put in rstiefel_init.c
However, when I check this I get Warning: failed to assign RegisteredNativeSymbol for rW to rW since rW is already defined in the ‘rstiefel’ namespace etc for other definitions.
Any help wou'd be much appreciated!
The packaged I'd like to submit can be found at: https://github.com/pdhoff/rstiefel