Skip to content
Prev 45336 / 63424 Next

compiling C code using headers from another R package

On Mar 12, 2013, at 4:56 PM, Herv? Pag?s wrote:

            
In theory, yes, but it's less efficient and requires you to get the declarations of the imported symbols right. I'd argue that it's really error prone unless you have some auto-generator for the necessary R API code. This is really intended for R package exposing a few calls, not for re-mapping calls of other libraries through a package.  It doesn't mean you can't do it, but I wouldn't want to maintain such a package :).
That's what we do on CRAN (at least I do for Mac binaries - I didn't check Windows).

Note that the packages can still use internal version of BOOST regardless. Actually, with boost I'd argue that's not a bad idea, because that way the package knows that it's using a version that works (since there are version compatibility issues with Boost).
They don't necessarily - only if there are some special options they want to enable/disable depending on some run-time checks.

Cheers,
Simon