
Build the C spec rxPriorLogDensityEval() (and the C API) evaluates
Source: R/priorDensity.R
rxPriorBuildSpec.RdThe one-time, R-only (main-thread) half of the kernel: parses the
prior column and hands the result to src/priorDensity.cpp as a
heap-allocated rx_prior_spec_t, wrapped in an R external pointer with a
finalizer. rxPriorLogDensityEval() (inst/include/rxode2prior.h) –
reachable through rxode2's C function-pointer table – then evaluates it
with no R/Rcpp call of any kind, safe to call from inside an
OpenMP-parallel objective/gradient evaluation.
Usage
rxPriorBuildSpec(ui, method = c("general", "nwpri", "tnpri"))