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.