Skip to content
Prev 39893 / 63424 Next

[Rcpp-devel] Question on 5.6 Interfacing C++ code

On 11-04-20 11:33 AM, Sean Robert McGuffee wrote:
Assuming those lines work on their own, just do the following:

1.  Put those *.cc files into the src directory of your package.  (You 
may need to create it.)

2.  Put useDynLib(foo) into the NAMESPACE file of your foo package.

3.  Call those functions using .C("X", args, PACKAGE="foo").

That's it.

Duncan Murdoch