R/backend-fingerprint.R
fit_backend_fingerprint.RdReturns a deterministic fingerprint of the BayesTools implementation that owns the currently loaded namespace. Downstream packages can store this value with serialized fits and invalidate caches when the generic fitting backend changes.
fit_backend_fingerprint()A length-one 32-character hexadecimal fingerprint, or NA_character_ when the
loaded implementation cannot be resolved.
The fingerprint covers the package's executable R and native surface and an explicit fit-backend schema version. It is captured when the namespace loads and memoized for the R session so source files edited afterward cannot silently restamp fits produced by the already loaded implementation. Development workflows should reload BayesTools after changing its backend.
The scope is intentionally conservative: any executable R/native or package build artifact change can change the fingerprint. Installed lazy-load databases and native libraries make the value build- and platform-local; it is not a cross-platform cache key. External runtimes and dependencies such as JAGS are outside this BayesTools implementation fingerprint.