Trying to understand more how Rcpp works, I runned this script:
// [[Rcpp::export]]
NumericVector my_fun(){
// calling rnorm()
Function f("rnorm");
// Next code is interpreted as rnorm(n=5, mean=10, sd=2)
return f(5, Named("sd")=2, _["mean"]=10);
}
in order to use R function into C++ with Rcpp. Here is the error message:
error: 'NumericVector' does not name a type.
I checked for Rtools and it is installed, so I don't understand why it is accepting NumericVector as a type name.