Re: [Rd] Dynamic linking to binary code from other packages??

From: Dirk Eddelbuettel <>
Date: Sat, 25 Oct 2008 15:15:12 -0500

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.


Three out of two people have difficulties with fractions.

______________________________________________ mailing list
Received on Sat 25 Oct 2008 - 20:18:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Nov 2008 - 21:30:51 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive