Skip to content
Prev 43946 / 63424 Next

include dll in R-package

Jeff,

Thanks for the reply.

For "explicit dependency", can dll and functions be specified 
in namespace and imported by the package automatically? or
the user has to use dyn.load and is.loaded to load the dll
and functions in R? If it is the former, could you point
me to an example that I could learn? Thanks!

Liying

----- ???? -----
???: "Jeff Ryan" <jeff.a.ryan at gmail.com>
???: "Kasper Daniel Hansen" <kasperdanielhansen at gmail.com>
??: r-devel at r-project.org, "Dirk Eddelbuettel" <edd at debian.org>
????: ???, 2012? 8 ? 24? ?? 10:28:50
??: Re: [Rd] include dll in R-package

Any package can link to external DLLs.  You'll need to make that an
explicit dependency, have some configure script and distribute the
library somewhere else, but many packages on CRAN already do this.

My RBerkeley uses a user installed Oracle Berkeley DB that is linked
to at configure time, of course there are many other examples as well.

And distributing _off_ CRAN is of course a reasonable alternative.

HTH
Jeff

On Fri, Aug 24, 2012 at 9:21 AM, Kasper Daniel Hansen
<kasperdanielhansen at gmail.com> wrote: