(Repost due to wrong mail AD.)

Hello

I have created a function that I want to expose to R in my package using Rcpp 
modules:

#include <Rcpp.h>
using namespace Rcpp;
void myfun( Rcpp::List lst, NumericVector vec ) {
        // do something
}
RCPP_MODULE(mymod) {
        function("myfun", &myfun, "Does something.");
}

The documentation file (Rd) of the function list the two formal arguments, lst 
and vec. However, R CMD CHECK says:

* checking for code/documentation mismatches ... WARNING
Codoc mismatches from documentation object 'myfun':
myfun
 Code: function(...)
 Docs: function(lst, vec)
 Argument names in code not in docs:
   ...
 Argument names in docs not in code:
   lst vec
 Mismatches in argument names:
   Position: 1 Code: ... Docs: lst

How can I fix this?

Thanks
Sören

_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to