-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix warning related to registration of native routines #5
Comments
jefferis
changed the title
Fix warning related
Fix warning related to registration of native routines
May 12, 2017
See https://www.mail-archive.com/rcpp-devel@lists.r-forge.r-project.org/msg09132.html for discussion and a possible solution for modules. Just running > tools::package_native_routine_registration_skeleton('.')
#include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>
/* FIXME:
Check these declarations against the C/Fortran source code.
*/
/* .Call calls */
extern SEXP nabor_knn_generic(SEXP, SEXP, SEXP, SEXP, SEXP);
static const R_CallMethodDef CallEntries[] = {
{"nabor_knn_generic", (DL_FUNC) &nabor_knn_generic, 5},
{NULL, NULL, 0}
};
void R_init_nabor(DllInfo *dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
} produced an init.c that gave a module loading error exactly as described in the mailing list message linked above. |
This is the stripped down version #include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>
void R_init_nabor(DllInfo *dll)
{
R_registerRoutines(dll, NULL, NULL, NULL, NULL);
R_useDynamicSymbols(dll, TRUE);
} |
Note that I did not do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Latest r-devel (as of 20 Feb 2017) has a problem.
See:
https://cran.r-project.org/web/checks/check_results_jefferis_at_gmail.com.html#nabor
RcppCore/Rcpp#636
The text was updated successfully, but these errors were encountered: