Hi Thank you for your replies. 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?
I have used Rcpp and the.c(), .call() function before but i have never tried to "wrap" such a large librairy. If you have any advise, please feel free to share. Thank you On Sun, 10 Feb 2019 22:05 Dirk Eddelbuettel <e...@debian.org wrote: > > On 10 February 2019 at 13:38, Neal Fultz wrote: > | 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. > > Yep. Should be straightforward to prototype. Distribution then has the > usual > problem that you need users to have libtorrent, or do the extra work of > bundling it with your package. But that is a day two problem. First, get > something working... > > Dirk > > | See also Writing R Extensions for "offical" docs and Dirk's book for > plain > | english explanations. > | > | 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. > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org >
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel