[Rcpp-devel] routine registration
edd at debian.org
Thu Jun 26 00:39:17 CEST 2014
On 25 June 2014 at 21:11, Ramon Diaz-Uriarte wrote:
| Dear All,
| Does it make sense to use C routine registration
| in a package that has C++ code and uses Rcpp? What are the pros and cons?
I do in two cases:
- RcppRedis uses (C language) code from the (small, mine) RApiSerialize package
- RcppXts uses (C language) code from the (larger, not mine, they let me
commit though) xts package
Registration is nice because it avoid explicit linking, and R handles this
effectively for you.
| All of my code is C++. Writing the relevant code for routine registration
| is not hard (it is actually automagic if one uses
| https://github.com/kevinushey/Kmisc/blob/master/R/registerFunctions.R). But
| I wonder if it really makes sense to do this.
I need to look at that too, and maybe cook up an example with Kevin. I
basically followed non-Rcpp, non-C++ packages just trying to get C code in.
Cheers from DSC, Dirk
| I've googled around and I haven't been able to find much (maybe a problem
| of my google-fu). I've looked at packages in CRAN and BioConductor that
| import Rcpp and almost none, of those I've looked at, use registration
| (except for a few that use Kmisc's registerFunctions).
| Ramon Diaz-Uriarte
| Department of Biochemistry, Lab B-25
| Facultad de Medicina
| Universidad Autónoma de Madrid
| Arzobispo Morcillo, 4
| 28029 Madrid
| Phone: +34-91-497-2412
| Email: rdiaz02 at gmail.com
| ramon.diaz at iib.uam.es
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel