<div dir="ltr">Rcpp should make this very straightforward; assuming you are putting this in a package (because why wouldn't you?) you would just need to set some flags in src/Makefile so that the external library gets picked up correctly by R, and write a few Rcpp wrapper functions for interacting with it.<div><br></div><div>See also Writing R Extensions for "offical" docs and Dirk's book for plain english explanations.<br></div><div><br></div><div>Feel free to share a link eg if you get something up on github - I've wanted to share data via torrent before and didn't find a nice solution.<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 10, 2019 at 11:21 AM Morgan Morgan <<a href="mailto:morgan.emailbox@gmail.com">morgan.emailbox@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><span style="font-size:12.8px;font-family:sans-serif">Hi All,</span><div dir="auto" style="font-size:12.8px;font-family:sans-serif"><br></div><div dir="auto" style="font-size:12.8px;font-family:sans-serif">I hope you are well.<br><div dir="auto"><br></div><div dir="auto">I wanted to have your view regarding the feasibility of a project. </div><div dir="auto"><br></div><div dir="auto">There is c++ library called libtorrent. I was wondering if it would be possible to use Rcpp in order to call some of libtorrent's functionality from R.</div><div dir="auto"><br></div><div dir="auto">It seems that there are some python bindings for this library however nothing for R.</div><div dir="auto"><br></div><div dir="auto">Do you think it would be something possible? Is it difficult from your point of view?</div><div dir="auto"><br></div><div dir="auto">Thank you </div><div dir="auto">Best regards</div><div style="color:rgb(136,136,136)"><div><div dir="auto">Morgan</div></div></div></div></div>
_______________________________________________<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></blockquote></div>