[Rcpp-devel] On Developing Header Packages

Charles Determan cdetermanjr at gmail.com
Tue Apr 7 20:37:26 CEST 2015


This is probably the best place I can think of to ask this question if
perhaps not completely on topic.  Some quick context:

I am exploring GPGPU computing and with my 'open-source' mindset I quickly
gravitated to using OpenCL.  Thankfully, many wonderful programmers have
already begun creating libraries to make this language better and faster.
One such library is the clBLAS library which essentially implements BLAS
routines for OpenCL enabled devices. Naturally, I would like to use this
library but I don't like the idea of telling users to install a dependency
outside of R and would rather have them install another package.
Therefore, I have it in my head to create a header package for the clBLAS
library to be used by anyone exploring OpenCL programming within R.

This leads me to my two general questions that I hope others can comment.

1.  What are developers thoughts regarding the 'packaging' of various C++
header libraries?  I know this has be very successfully done with the 'BH'
package but is this considered an exception or an example?

2. If it is encouraged to create such header packages are there any
guidelines or standards that should be followed?  Is there an expected
structure?  I can look at the 'BH' package and go from there but it would
be nice if the R(cpp) community had some collective opinion about this.

Regards,
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150407/94edfa2b/attachment.html>


More information about the Rcpp-devel mailing list