From edd at debian.org  Sat Oct 25 22:15:12 2008
From: edd at debian.org (Dirk Eddelbuettel)
Date: Sat, 25 Oct 2008 15:15:12 -0500
Subject: [Rd] Dynamic linking to binary code from other packages??
In-Reply-To: <8adccabf0810251305o3ad8483x5de5009605fbdbe1@mail.gmail.com>
References: <8adccabf0810251305o3ad8483x5de5009605fbdbe1@mail.gmail.com>
Message-ID: <18691.32336.501605.415161@ron.nulle.part>


On 25 October 2008 at 16:05, Charles Danko wrote:
| Dear R-devel,
| 
| I am writing a package that needs some C++ functions from an external
| SDK (Affymetrix fusion).  The same functions are already compiled into
| another package (affxparser).
| 
| Can I dynamically link to the compiled code in affxparser, rather than
| re-compiling these separately into my package?

Yes.  Working examples are lme4 using Matrix.  This is documented in the 'R
Extensions' manual.  

| Not a lot of experience on this subject!

I don't think it is the easiest way around.  Maybe start by 'just'
recompiling and relinking.

Dirk

-- 
Three out of two people have difficulties with fractions.



[Rd] Dynamic linking to binary code from other packages??
Dirk Eddelbuettel