[Rcpp-devel] Rcpp - libtorrent

Dirk Eddelbuettel edd at debian.org
Sun Feb 10 23:05:30 CET 2019


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 | edd at debian.org


More information about the Rcpp-devel mailing list