role-model / roleR

R package implementing the RoLE model
https://role-model.github.io/roleR
GNU General Public License v3.0
1 stars 2 forks source link

nullables in Cpp functions #97

Closed diazrenata closed 1 year ago

diazrenata commented 1 year ago
Warning messages:
1: Unable to parse C++ default value 'NULL' for argument local of function dataFunCpp

https://gallery.rcpp.org/articles/optional-null-function-arguments/

int intFunCpp(Rcpp::StringVector fun_name,
                Nullable<NumericVector> probs=R_NilValue, 
                Nullable<int> x=R_NilValue) 
ajrominger commented 1 year ago

related to #112