FWIW I've had some success registering Rcpp-based native routines using Kmisc:::registerFunctions() by Kevin Ushey (https://cran.r-project.org/web/packages/Kmisc/index.html). Note this is a non-exported function and from memory it required a little bit of post-processing, but it got me most of the way there. Cheers, Pete