I get this error when trying to compile:
#include using namespace Rcpp; // [[Rcpp::export]] void test() { NumericMatrix res(1, 1, NA_REAL); }