I think your best bet is wrapping an existing C++ library using RCpp[1] that will require some work but I hope not too much.<p>[1] I would have really liked that as I ended up writing all data to SQLite and then imported it to R for analysis. Not the most elegant solution...