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.
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. On Sun, Feb 10, 2019 at 11:21 AM Morgan Morgan <morgan.email...@gmail.com> wrote: > Hi All, > > I hope you are well. > > I wanted to have your view regarding the feasibility of a project. > > 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. > > It seems that there are some python bindings for this library however > nothing for R. > > Do you think it would be something possible? Is it difficult from your > point of view? > > Thank you > Best regards > Morgan > _______________________________________________ > 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
_______________________________________________ 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