<div dir="auto"><div>Hi<div dir="auto"><br></div><div dir="auto">Thank you for your replies.</div><div dir="auto">In order to create a prototype would i need to  build the libtorrent library? Or would including the source file in the package be enough?</div><div dir="auto"><br></div><div dir="auto">I have used Rcpp and the.c(), .call() function before but i have never tried to "wrap" such a large librairy.</div><div dir="auto"><br></div><div dir="auto">If you have any advise, please feel free to share.</div><div dir="auto"><br></div><div dir="auto">Thank you</div><br><br><div class="gmail_quote"><div dir="ltr">On Sun, 10 Feb 2019 22:05 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>
On 10 February 2019 at 13:38, Neal Fultz wrote:<br>
| Rcpp should make this very straightforward; assuming you are putting this<br>
| in a package (because why wouldn't you?) you would just need to set some<br>
| flags in src/Makefile so that the external library gets picked up correctly<br>
| by R, and write a few Rcpp wrapper functions for interacting with it.<br>
<br>
Yep. Should be straightforward to prototype.  Distribution then has the usual<br>
problem that you need users to have libtorrent, or do the extra work of<br>
bundling it with your package.  But that is a day two problem.  First, get<br>
something working...<br>
<br>
Dirk<br>
<br>
| See also Writing R Extensions for "offical" docs and Dirk's book for plain<br>
| english explanations.<br>
| <br>
| Feel free to share a link eg if you get something up on github - I've<br>
| wanted to share data via torrent before and didn't find a nice solution.<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank" rel="noreferrer">edd@debian.org</a><br>
</blockquote></div></div></div>