Disambiguating Rcpp11 and Rcpp

1 min read

Rcpp11 Rcpp

I pushed some code this morning to allow us to use this alternative syntax to use Rcpp11.

#include <Rcpp11>
using namespace Rcpp11 ;  

Of course the usual code will continue to work, and might even be preferable if you write code that needs to be compatible with both Rcpp11 and Rcpp, e.g. when doing comparative benchmarks …

#include <Rcpp.h>
using namespace Rcpp ;  

But the new syntax makes it clearer that you are using Rcpp11.

Support my work on patreon Blogging is one of the activities I have the freedom to do because of community sponsorship. If you like the content, would like to see more, or just generally like my work, please consider pledging.