BH: Boost Headers for R Packages


The BH package provides R with access to Boost header files. Boost provides free peer-reviewed portable C++ source libraries. A large part of Boost is provided as C++ template code which is resolved entirely at compile-time without linking. This package aims to provide a subset of the Boost libraries for template use among CRAN packages. By placing these libraries in this package, we aim ti offer a more efficient distribution system for CRAN as replication of this code in the sources of other packages is avoided.


The package can be used via the LinkingTo: field in the DESCRIPTION field of an R package --- and the R package infrastructure tools will then know how to set include flags correctly on all architectures supported by R. Note that this can be used solely by headers-only Boost libraries. This covers most of Boost, but excludes some libraries which require linking for parts or all of their functionality.


Several posts at the Rcpp Gallery details use of Boost with R via Rcpp: See the Boost tag page for the complete list.

Where do I get it

The package is available


BH is written by Dirk Eddelbuettel, Jay Emerson and Michael Kane; and is now maintained by Dirk Eddelbuettel.


BH is licensed under the BOOST Software License, Version 1.0 (BSL-1.0)

Last modified: Thu Jan 2 19:43:25 CST 2014