R bloggers

Making Your .C Less NOTEworthy

FavoriteLoadingAdd to favorites

If you are a package maintainer, you may have noticed the following new notes from your code checks:Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ If you are using Rcpp you can easily fix this by refreshing the auto-generated function registration. However, if you have a lot of C code that uses the .C() interface, then you need to make a few changes. In this blog post, I’ll use my updated meanShiftR package as an example of how to quickly fix your code. The first thing you need to do is to examine your C code and determine your parameter types for each of the functions you call from R using .C(). In meanShiftR I have two C functions that I call from R. The first function R_meanShift has a function prototype that looks like this: /* mean shift function prototype*/ void…
Original Post: Making Your .C Less NOTEworthy