From edd at debian.org  Tue Mar 12 22:14:20 2013
From: edd at debian.org (Dirk Eddelbuettel)
Date: Tue, 12 Mar 2013 16:14:20 -0500
Subject: [Rd] compiling C code using headers from another R package
In-Reply-To: <513F9682.2080503@fhcrc.org>
References: <513E4A98.9080503@cs.ucr.edu>
	<B54A5D4C-2578-4739-BEB5-6B17FA6A9856@r-project.org>
	<513F582B.9090601@cs.ucr.edu>
	<E43810D3-2AEC-4F07-B61A-03923D6D2FC3@r-project.org>
	<513F6D72.3040304@fhcrc.org>
	<5195A4FB-F14C-484C-A732-C98758D0D737@r-project.org>
	<513F7883.7060701@fhcrc.org>
	<CEA0FBC0-908A-4ED4-99AC-83C6BACB61F6@r-project.org>
	<513F8378.4020800@fhcrc.org>
	<C427ED87-4C8E-455F-83FF-9A7FEF4BFAFC@r-project.org>
	<513F9682.2080503@fhcrc.org>
Message-ID: <20799.39596.152428.12460@max.nulle.part>


On 12 March 2013 at 13:56, Herv? Pag?s wrote:
| The reason I'm interested in clarifying this is that we are facing
| a similar situation with other libraries (e.g. the BOOST library)
| used by some Bioconductor packages. Right now, each Bioconductor
| package includes its own version of the BOOST source code, which
| is of course less than optimal. Ideally we'd want to wrap the BOOST
| source (or a subset of it, it's huge!) in something like an rBOOST
| package and use a setup similar to what I describe above for RGSL
| (i.e. using LinkingTo). Are there better ways? Is there something
| like an RcppBOOST package? Sounds like, like for the GSL, it would
| be better to install the static BOOST libs on the build machine and
| have client packages link against that (but that also means more
| complexity in the client packages since they need a configure script).

Are you aware of the BH package on r-forge and now in CRAN?  

It provides Boost __headers__ which is enough for purely template-based
packages.  The bigmemory packages already uses it, and we are collecting
a few 'issue tickets' at the R-Forge page to see which other (CRAN) packages
could use which other Boost packages.  Again, this works for _template_ based
Boost library and excludes eg Boost regex which needs linking.  So this may
not help you if not to also link to Boost Graph.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  



[Rd] compiling C code using headers from another R package
Dirk Eddelbuettel