Closed bobverity closed 4 years ago
No, because even R implementation is run from within Rcpp where theta is a vector of un-named doubles. Would have to pass names in separately, or use Rcpp objects instead. Dropping this idea for now.
Should be possible via Rcpp::NumericVector. Should at least give this a go.
Done and working. Still some issue eith coda::effectiveSize() causing tests to fail, but I think this is a separate issue.
Can we ensure that theta is passed around within R as a named vector, so that at least parameters can be accessed with theta["foo"] rather than theta[5]. This would only apply within R, no such luck within C++.