From hpages at fhcrc.org  Tue Mar 12 22:53:52 2013
From: hpages at fhcrc.org (=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=)
Date: Tue, 12 Mar 2013 14:53:52 -0700
Subject: [Rd] compiling C code using headers from another R package
In-Reply-To: <20799.39596.152428.12460@max.nulle.part>
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>
	<20799.39596.152428.12460@max.nulle.part>
Message-ID: <513FA3F0.4080409@fhcrc.org>

On 03/12/2013 02:14 PM, Dirk Eddelbuettel wrote:
>
> 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.

That's great to know, thanks! We'll need to check which BioC packages
are purely template-based. Using BH for those certainly sounds like
a better way to go.

H.

>
> Dirk
>

-- 
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



[Rd] compiling C code using headers from another R package
=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=