Skip to content

Release 3.7.0: seedable MCMC runs - #52

Merged
m-murphy merged 3 commits into
masterfrom
release/3.7.0
Sep 15, 2026
Merged

m-murphy merged 3 commits into
masterfrom
release/3.7.0

Conversation

@m-murphy

@m-murphy m-murphy commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Cuts 3.7.0 from master after #51. This is the release intended for first CRAN submission.

Release

  • Bump Version to 3.7.0 and close out the NEWS entry for run_mcmc(seed =).

CRAN prep

  • Runnable @examples and @return docs on all 24 exported functions (slowest example 0.16 s).
  • Description cites Murphy & Greenhouse (2024) <doi:10.1093/bioinformatics/btae619>.
  • parallel declared in Imports; unused markdown dropped from Suggests.
  • \doi{} for the namibia_data source; @format for simulated_data / mcmc_results.
  • Fixed swapped epsilon_pos/epsilon_neg descriptions in simulate_observed_allele().
  • cran-comments.md added (build-ignored).

Replace bundled spline.h

  • adapt_temp() now interpolates temperature as a function of cumulative communication barrier with a monotone cubic Hermite scheme (src/monotone_interpolator.h, ~100 lines, ours) and reads the new ladder off an even barrier grid. No root solving, no monotonicity post-fix, no band-matrix LU.
  • Removes src/include/spline (GPL-2 third-party, locally modified to float without a change notice). No cph entry needed.
  • On an identical seeded 16-rung job the adapted ladders agree closely with the old implementation (e.g. 0.845/0.812, 0.659/0.651, …, 0.032/0.031).
  • New test-adapt-temp.R covers finiteness, monotonicity, fixed endpoints, adapt_temp = FALSE, and user-supplied temperature vectors.

Local R CMD check --as-cran --run-donttest (R 4.5.2, macOS arm64): CRAN incoming feasibility OK, compiled code OK, examples/tests (46)/vignettes OK, tarball 3.96 MB. Remaining findings are local-toolchain only (-Wfixed-enum-extension from R_ext/Boolean.h under Apple clang 21; HTML Tidy version).

After merge: tag v3.7.0, then devtools::release() / devtools::submit_cran().

Bump version to 3.7.0 and close out the NEWS entry for run_mcmc(seed =).
Use \doi{} for the namibia_data source so CRAN incoming checks are clean.
Add runnable examples and @return documentation to every exported function,
cite the Bioinformatics paper in Description, declare parallel in Imports,
drop the unused markdown Suggest, and credit the bundled spline.h author as
cph. Fix swapped epsilon_pos/epsilon_neg docs in simulate_observed_allele().
Add cran-comments.md.
adapt_temp() now interpolates temperature as a function of cumulative
communication barrier (Fritsch-Carlson / PCHIP slopes) and reads the new
ladder off an even barrier grid, so there is no root solving, no monotonicity
post-fix, and no band-matrix LU. Adjacent chains with zero barrier collapse
into a single knot; if no barrier has been observed the update is skipped.

Removes src/include/spline (GPL-2 third-party, locally modified without a
change notice) and the cph entry for it. Adds testthat coverage for the
adapted ladder.
@m-murphy
m-murphy merged commit 05ce171 into master Sep 15, 2026
5 checks passed
@m-murphy
m-murphy deleted the release/3.7.0 branch September 15, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant