The C++ code in my package has using namespace Eigen;
but this doesn't get put at the top of the auto-generated RcppExports.cpp
. As a result compilation fails complaining MatrixXd
etc is not recognized. I can manually add using namespace Eigen;
to RcppExports.cpp
and everything works fine, but this make the workflow pretty painful.
Is there some way to configure Rcpp
to automatically add using namespace Eigen;
to RcppExports.cpp
?