// [[Rcpp::interfaces(r, cpp)]]
// [[Rcpp::export(name=".as")]]
Rcpp::List neighbors_(const Rcpp::IntegerVector& node_idxs,
const Rcpp::NumericMatrix& W,
const int k)
{
...;
}
This gives an error when registering routines. I guess this cannot be circumvented but to change the exported name.