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