Re: [Bioc-devel] unit tests for C code inside a package

2015-01-27 Thread Elena Grassi
Thank you both for your suggestions. Peter: Rcpp attributes seem great but right now I would prefer to avoid changing all the pure C structs of my old codebase in C++ classes and so on. But if in the future we will need to add new features I will definitely add these two ++ :) Dan: yep, that was r

Re: [Bioc-devel] unit tests for C code inside a package

2015-01-26 Thread Dan Tenenbaum
- Original Message - > From: "Elena Grassi" > To: bioc-devel@r-project.org > Sent: Monday, January 26, 2015 1:14:59 AM > Subject: [Bioc-devel] unit tests for C code inside a package > > Hi, > > I'm writing a package that calculates total affinity (see PMID > 21335606 and 16873464 if tr

Re: [Bioc-devel] unit tests for C code inside a package

2015-01-26 Thread Peter Haverty
My favorite solution to this would be to use Rcpp attributes to add R-level functions for each C function. You can use these just for testing and skip the exporting and manual pages. That's not quite what you asked for but it would work. BTW transcription factors are my thing so I'm eager to tr