[Rd] Rcpp - Linking to DLL from another package?

Stravs, Michael Michael.Stravs at eawag.ch
Mon Dec 18 14:24:48 CET 2017


I am trying to make a package B that extends another package A. Package A uses Rcpp, and I want to extend a class X used there.

So package A has

src/X.h and inst/include/X.h
class X
{ ... }

X::X( arguments )
{ ... }

My package B wants to do this:

LinkingTo: Rcpp, RcppArmadillo, A
Imports: Rcpp, RcppArmadillo, A

class Y: public X
{ ... }


Y::Y( arguments ): X(arguments)
{ ... }

Can I somehow make the package link to the library A.dll or its corresponding Linux equivalent? (Note: the files in inst/include will already be a pull request from me to the package A author, so a limited pull request for more changes is feasible, but I would like to keep it minimal.

Dr. Michael Stravs
BU E 23
Überlandstrasse 133
8600 Dübendorf
+41 58 765 6742

	[[alternative HTML version deleted]]

More information about the R-devel mailing list