<div dir="ltr">Hi all,<div><br></div><div>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.</div><div><br></div><div>But the real issue will be separating out the guts of your code from the Rcpp/pybind11-specific stuff, as others have mentioned.</div><div><br></div><div>--Kevin<br><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 27, 2018 at 5:14 AM Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Some folks told me that pybind11, ie at<br>
<br>
   <a href="https://github.com/pybind/pybind11" rel="noreferrer" target="_blank">https://github.com/pybind/pybind11</a><br>
<br>
is the one to use as Boost Python is stagnant. I have no personal experience<br>
with pybind11 though.<br>
<br>
The question is a good.  This (old) CRAN package has been doing both R and<br>
Python from a joint C++ basis for years:<br>
<br>
   <a href="https://cran.r-project.org/package=fastcluster" rel="noreferrer" target="_blank">https://cran.r-project.org/package=fastcluster</a><br>
<br>
but I also never looked in real detail at what it does.<br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote></div></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">Kevin Thornton</p><p dir="ltr">Associate Professor</p>
<p dir="ltr">Ecology and Evolutionary Biology</p>
<p dir="ltr">UC Irvine</p>
<p dir="ltr"><a href="http://www.molpopgen.org">http://www.molpopgen.org</a></p>
<p dir="ltr"><a href="http://github.com/ThorntonLab">http://github.com/ThorntonLab</a></p>
<p dir="ltr"><a href="http://github.com/molpopgen">http://github.com/molpopgen</a></p>
</div></div>