I suspect this might be a general issue.
go = nFunction(
fun = function() {
y <- rbeta(2,1) # 3rd argument is missing
return(y)
},
returnType = 'numericVector'
)
cgo <- nCompile(go)
/accounts/vis/paciorek/R/x86_64-pc-linux-gnu-library-ubuntu-24.04/4.5/nCompiler/include/nCompiler/ET_ext/post_Rcpp/recyclingRule.h:642:20: error: too few arguments to function
642 | return func(
| ~~~~^
643 | std::get<Indexes>(t).coeff(index % sizes[Indexes])...
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
644 | );
| ~