From 0d9d819214f637e984df0c130ce0a087a9f5abc9 Mon Sep 17 00:00:00 2001 From: Ethan Bass Date: Sat, 7 May 2022 17:11:49 -0400 Subject: [PATCH] usedpackage_native_routine_registration_skeleton(".") to fix R CMD check note MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit note: File ‘VPdtw/libs/VPdtw.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines and to disable symbol search. --- src/VPdtw_init.c | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/VPdtw_init.c diff --git a/src/VPdtw_init.c b/src/VPdtw_init.c new file mode 100644 index 0000000..7e7ed87 --- /dev/null +++ b/src/VPdtw_init.c @@ -0,0 +1 @@ +#include // for NULL #include /* .C calls */ extern void dilation(void *, void *, void *, void *); extern void signalMatchWrapABand(void *, void *, void *, void *, void *, void *, void *); static const R_CMethodDef CEntries[] = { {"dilation", (DL_FUNC) &dilation, 4}, {"signalMatchWrapABand", (DL_FUNC) &signalMatchWrapABand, 7}, {NULL, NULL, 0} }; void R_init_VPdtw(DllInfo *dll) { R_registerRoutines(dll, CEntries, NULL, NULL, NULL); R_useDynamicSymbols(dll, FALSE); } \ No newline at end of file