Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upR_CMethodDef Declaration #1
Comments
|
Thanks for testing! I will add the I had based my init file on tools::package_native_routine_registration_skeleton(".", character_only = FALSE)which simply omits the Searching for R_NativePrimitiveArgType on GitHub I did find some R packages which use proper code, for example, cluster, potts, cheddar, earth. polyCub will be among these soon. |
In src/init.c, you don't specify the fourth field of your
R_CMethodDefdeclaration. If you compile with-Wmissing-field-initializersin gcc, you will see the warning:You can see what it's complaining about here https://cran.r-project.org/doc/manuals/R-exts.html#Registering-native-routines (see their
myC_tbit). It's probably not dangerous, but it's also easy enough to fix. Just change yourCEntriesline to this:It's probably not dangerous though, so feel free to close the issue if you prefer.