#rstats #rcpp can’t find an R package for FarmHash. An experiment: I’d pay $200 USD for someone to do the Rcpp wrapper and a blog post/twitch/whatever on ‘here’s how to take a smallish C++ lib and make it R with low drama’ using this test case. Repo at github.com/google/farmhash
2
1
1
Replying to @johnmsheffield
Call Rcpp.package.skeleton("RcppFarmHash") Copy farmhash.{h,cc} into its src/ dir. Build it. Almost done: add more interface functions. > RcppFarmHash::farmhash("The quick brown fox") [1] 1.79294e+19 > github.com/eddelbuettel/rcpp… #rcpp #rstats

Jul 22, 2021 · 1:36 PM UTC

1
1
2
Replying to @eddelbuettel
So (a) this totally works, thank you! and (b) turns out @eddelbuettel apparently time-traveled a couple years and already did exactly this in an Rcpp vignette at cloud.r-project.org/web/pack…
2