dirmeier / diffusr

Network diffusion algorithms in R.
GNU General Public License v3.0
21 stars 6 forks source link

Rcpp docu #2

Open dirmeier opened 7 years ago

dirmeier commented 7 years ago

roxygen/rcpp does not provide commentation when export name is set

dirmeier commented 7 years ago

This actually happens when the interface is set

 //' Find the closest neighbors of a group of nodes in a graph.
//'
//' @noRd
//' @param node_idxs  the staring distribution
//' @param W  adjacency matrix
//' @param k  the depth of the nearest neighbor search
//' @return  returns a list of nearest neighbors for every node idxs given in <emph>node_idxs</emph>
// [[Rcpp::interfaces(r, cpp)]]
// [[Rcpp::export]]
Rcpp::List neighbors_(const Rcpp::IntegerVector& node_idxs,
                      const Rcpp::NumericMatrix& W,
                      const int k)
{
  return R_NilValue;
}