1
0
mirror of https://github.com/msberends/AMR.git synced 2026-03-19 07:42:25 +01:00
Files
AMR/R
Claude ad31fba556 Modernise messaging infrastructure with cli support
Rewrites message_(), warning_(), stop_() to use cli::cli_inform(),
cli::cli_warn(), and cli::cli_abort() when the cli package is available,
with a fully functional plain-text fallback for environments without cli.

Key changes:
- New cli_to_plain() helper converts cli inline markup ({.fun}, {.arg},
  {.val}, {.field}, {.cls}, {.pkg}, {.href}, {.url}, etc.) to readable
  plain-text equivalents for the non-cli fallback path
- word_wrap() simplified: drops add_fn, ANSI re-index algorithm, RStudio
  link injection, and operator spacing hack; returns pasted input unchanged
  when cli is available
- stop_() no longer references AMR_env$cli_abort; uses pkg_is_available()
  directly; passes sys.call() objects to cli::cli_abort() call= argument
- Removed add_fn parameter from message_(), warning_(), and word_wrap()
- All call sites across R/ updated: add_fn arguments removed, some paste0-
  based string construction converted to cli glue syntax ({.fun as.mo},
  {.arg col_mo}, {n} results, etc.)
- cli already listed in Suggests; no DESCRIPTION dependency changes needed

https://claude.ai/code/session_01XHWLohiSTdZvCutwD7ag2b
2026-03-18 12:10:17 +00:00
..
2025-04-29 16:15:18 +02:00
2026-01-16 10:57:03 +01:00
2025-04-12 11:46:42 +02:00
2026-03-06 18:53:42 +01:00
2026-03-06 12:41:27 +01:00
2026-03-11 16:07:31 +01:00
2025-04-12 11:46:42 +02:00
2026-01-16 10:57:03 +01:00
2025-04-12 11:46:42 +02:00
2026-01-06 23:08:50 +01:00
2026-01-16 10:57:03 +01:00
2025-04-12 11:46:42 +02:00
2025-06-02 12:11:00 +02:00
2025-04-12 11:46:42 +02:00
2025-04-12 11:46:42 +02:00
2025-07-19 14:06:36 +02:00
2025-04-12 11:46:42 +02:00
2025-04-12 11:46:42 +02:00
2025-06-13 16:12:28 +02:00
2025-04-12 11:46:42 +02:00
2025-04-12 11:46:42 +02:00
2025-06-01 12:17:47 +02:00