Skip to content

Merge pull request #95 from RodrigoZepeda/main - #96

Merged
RodrigoZepeda merged 3 commits into
mainfrom
devel
Sep 29, 2026
Merged

RodrigoZepeda merged 3 commits into
mainfrom
devel

Conversation

@RodrigoZepeda

Copy link
Copy Markdown
Owner

Merge pull request #93 from RodrigoZepeda/devel

RodrigoZepeda and others added 3 commits September 29, 2026 02:34
Merge pull request #93 from RodrigoZepeda/devel
…encies

nowcast_backtest(checkpoint_file = ) saves each finished (engine, date) fit
so an interrupted backtest resumes (#90). Only the main R session writes the
file, through a temporary file and a rename, so every future plan is safe with
parallel = TRUE; fits then run and are saved in waves of nbrOfWorkers(). A
fingerprint of the data, seed, keep_draws, truth settings and each engine makes
a mismatched call abort instead of mixing backtests; failed fits are retried.

backtest_combine() joins backtests run separately -- other engines on the same
dates, or the same engines on new dates -- into the object one call would have
produced (#91). It aborts on a repeated (method, date) fit or on backtests that
differ in strata, truth settings or quantile levels, and only_common_dates =
TRUE keeps just the dates every method has.

Dependencies: declare minimum versions in DESCRIPTION so that old installs
fail at install time instead of in the tests: dplyr (>= 1.1.0) for `.by`,
rlang (>= 1.0.0) for hash(), and tidyselect (>= 1.2.1), whose 1.2.0 gives a
different error message that test-changers.R asserts on.

Fix .batch_restore_date_class(): on older R (seen on R 4.3.3) setdiff() on
Dates returns plain numbers and match() cannot compare them with dates, so
simulate_batch() always aborted with "Every report date is closed". It now
compares the numeric values.

Bump the version to 1.1.1. Update NEWS.md, SKILL.md and DEVELOPMENT_SKILL.md
(backtest checkpoints and combining, and testing against current R and
packages), and add a backtest_combine tip to the ensemble vignette.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DW8xQ7pmptZYEJCb8KkEox
…-ccyzrg

Add backtest checkpoints and backtest_combine(); require newer depend…
@RodrigoZepeda
RodrigoZepeda merged commit 5b1972a into main Sep 29, 2026
12 checks passed
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.

2 participants