• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daniel1noble / BACE / 42453884692
89%

Build:
DEFAULT BRANCH: main
Ran 08 Nov 2026 06:17AM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Nov 2026 06:13AM UTC coverage: 88.071% (-0.006%) from 88.077%
42453884692

push

github

daniel1noble
Add checkpoint/resume so long runs survive an interrupted session

A 22-28 hour run currently loses everything if the session dies; both
published case studies hand-built their own save-and-resume scaffolding
for exactly this reason. With checkpoint_dir set, the convergence chain is
saved when it finishes and each final imputation run is saved as soon as
it completes. Calling again with the same arguments and the same directory
loads that work and computes only what is missing. Default NULL: off, and
no behaviour changes.

Design decisions, all load-bearing:

* seed is required (at bace() and bace_final_imp()). Each final run draws
  from its own stream derived from (seed, run number), which is what makes
  a resumed run identical to one that was never interrupted. bace_imp()
  needs no seed: that phase is unseeded by design, which is precisely why
  its result is SAVED rather than replayed.
* The final-phase manifest hashes the converged dataset. Re-running the
  unseeded chained phase gives a different starting point under identical
  arguments, so without this a resume could silently mix final runs begun
  from two different converged states.
* Formulas are compared as deparsed text, never hashed as objects:
  serialize() follows a formula's environment, so identical formulas built
  in different places would compare unequal and drag unrelated data into
  the hash.
* Hashes strip serialize()'s version-2 header, which carries the writer's R
  version, so an R upgrade does not invalidate saved work.
* Writes go to a temporary file in the same directory and are renamed, with
  the rename's return value checked: it returns FALSE rather than throwing
  when it cannot move the file, and unchecked that silently loses the run.
* Each retry-ladder attempt saves to its own file (the name carries the
  iteration count), so a resumed bace() continues the ladder.
* A saved run is treated as final and never recomputed: a tolerated warm-up
  failure changes a run... (continued)

164 of 186 new or added lines in 4 files covered. (88.17%)

4437 of 5038 relevant lines covered (88.07%)

839.76 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
87.5
R/checkpoint.R
6
89.43
-0.1% R/bace_final_imp.R
6
85.95
-0.19% R/bace_imp.R
Jobs
ID Job ID Ran Files Coverage
1 42453884692.1 08 Nov 2026 06:17AM UTC 21
88.07
GitHub Action Run
Source Files on build 42453884692
  • Tree
  • List 21
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42453884692
  • 09dd246b on github
  • Prev Build on main (#42451861175)
  • Next Build on main (#42455092080)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc