search for: r_init_myincr

Displaying 1 result from an estimated 1 matches for "r_init_myincr".

2003 Dec 09
1
R Interface handholding
...mething called init.c: #include "areone.h" #include <R_ext/Rdynload.h> #include <Rinternals.h> R_NativePrimitiveArgType myincr_t[1] = {INTSXP}; static const R_CMethodDef cMethods[] = { {"myincr", (DL_FUNC) &myincr, 1, myincr_t} }; void R_init_myincr(DllInfo* dll) { R_registerRoutines(dll, cMethods, NULL, NULL, NULL); } R is happy to install this for me, but after doing a library(myincr), the function doesn't seem to be available, so I presume I'm missing something. Does R normally call, at library load, R_init_$MODULENAME() ? My oth...