From 7218812c99b10dcbbb3bcf01ca05507ac8c09506 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Mar 2026 23:23:20 +0000 Subject: [PATCH] Update NEWS.md to continuous log + add concise style rules to CLAUDE.md NEWS.md is now a single continuous log under one heading per dev series, not a new section per version bump. CLAUDE.md documents: only replace line 1 (heading), append new entries, keep them extremely concise with no trailing full stop. Merged 9035 and 9036 entries into one section; condensed verbose 9036 bullets; added CI workflow change entry. https://claude.ai/code/session_01XHWLohiSTdZvCutwD7ag2b --- CLAUDE.md | 7 ++++++- NEWS.md | 12 ++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 3c8878bf5..4892f3c00 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -166,7 +166,12 @@ echo "$currentversion" The `+ 1` accounts for the fact that this PR's squash commit is not yet on the default branch. Set **both** of these files to the resulting version string (and only once per PR, even across multiple commits): 1. **`DESCRIPTION`** — the `Version:` field -2. **`NEWS.md`** — the top-level heading `# AMR ` +2. **`NEWS.md`** — **only replace line 1** (the `# AMR ` heading) with the new version number; do **not** create a new section. `NEWS.md` is a **continuous log** for the entire current `x.y.z.9nnn` development series: all changes since the last stable release accumulate under that single heading. After updating line 1, append the new change as a bullet under the appropriate sub-heading (`### New`, `### Fixes`, or `### Updates`). + + Style rules for `NEWS.md` entries: + - Be **extremely concise** — one short line per item + - Do **not** end with a full stop (period) + - No verbose explanations; just the essential fact If `git describe` fails (e.g. no tags exist in the environment), fall back to reading the current version from `DESCRIPTION` and adding 1 to the last numeric component — but only if no bump has already been made in this PR. diff --git a/NEWS.md b/NEWS.md index 1a28290fc..de66ef26a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,13 +1,5 @@ # AMR 3.0.1.9036 -### Updates -* Modernised messaging infrastructure: `message_()`, `warning_()`, and `stop_()` now use `cli` for rich formatting (colours, inline markup, hyperlinks) when the `cli` package is installed, with a fully functional plain-text fallback when `cli` is absent -* Removed `add_fn` parameter from `message_()`, `warning_()`, and `word_wrap()` — styling is now handled by `cli` markup or dropped from the plain-text path -* New internal helper `cli_to_plain()` converts cli inline markup (`{.fun}`, `{.arg}`, `{.val}`, etc.) to plain-text equivalents for the non-cli fallback path -* Call sites across all R source files updated from `paste0()`-based string construction to cli glue syntax (e.g. `{.fun as.mo}`, `{.arg col_mo}`, `{n} results`) - -# AMR 3.0.1.9035 - ### New * Integration with the **tidymodels** framework to allow seamless use of SIR, MIC and disk data in modelling pipelines via `recipes` - `step_mic_log2()` to transform `` columns with log2, and `step_sir_numeric()` to convert `` columns to numeric @@ -52,6 +44,10 @@ * Removed the `"inverse"` option, which has now become redundant * `ab_group()` now returns values consist with the AMR selectors (#246) * Added two new `NA` objects, `NA_ab_` and `NA_mo_`, analogous to base R's `NA_character_` and `NA_integer_`, for use in pipelines that require typed missing values +* `message_()`, `warning_()`, `stop_()` now use `cli` markup when available, with plain-text fallback; removed `add_fn` parameter from `message_()`, `warning_()`, `word_wrap()` +* New internal `cli_to_plain()` converts `cli` markup to plain text for non-cli path +* All internal call sites updated to `cli` glue syntax +* CI dev-version and old-tinytest workflows now only run on `main` branch pushes # AMR 3.0.1