[Rcpp-devel] advice on sharing C++ code across R and Python
krthornt at uci.edu
Fri Apr 27 20:05:54 CEST 2018
pybind11 is the best choice here. It goes quite a bit beyond what Boost
Python did, including nice support for Numpy arrays, the buffer protocol
more generally, and an Eigen interface. I've used it quite a bit.
But the real issue will be separating out the guts of your code from the
Rcpp/pybind11-specific stuff, as others have mentioned.
On Fri, Apr 27, 2018 at 5:14 AM Dirk Eddelbuettel <edd at debian.org> wrote:
> Some folks told me that pybind11, ie at
> is the one to use as Boost Python is stagnant. I have no personal
> with pybind11 though.
> The question is a good. This (old) CRAN package has been doing both R and
> Python from a joint C++ basis for years:
> but I also never looked in real detail at what it does.
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
Ecology and Evolutionary Biology
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel