Charles Danko
2008-Oct-25 20:05 UTC
[Rd] Dynamic linking to binary code from other packages??
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? Not a lot of experience on this subject! Thanks, Charles
Dirk Eddelbuettel
2008-Oct-25 20:15 UTC
[Rd] Dynamic linking to binary code from other packages??
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.