1
0
mirror of https://github.com/msberends/AMR.git synced 2026-05-31 12:21:40 +02:00
Files
AMR/R
Claude bf102f644e Fix info=FALSE ignored when no breakpoints found in as_sir_method
Operator-precedence bug at line 1601:

  if (isTRUE(info) && nrow(df_unique) < 10 || nrow(breakpoints) == 0)

R evaluates && before ||, so this was equivalent to:

  (isTRUE(info) && nrow(df_unique) < 10) || (nrow(breakpoints) == 0)

When nrow(breakpoints) == 0 (e.g. cefoxitin / flucloxacillin / mupirocin
against E. coli in EUCAST) the intro message was always printed regardless
of info. Fix: add parentheses so info gates both conditions:

  isTRUE(info) && (nrow(df_unique) < 10 || nrow(breakpoints) == 0)

Also pass print = isTRUE(info) to progress_ticker so the progress bar
(which prints intro_txt as its title) is suppressed when info = FALSE.

https://claude.ai/code/session_012DXCXbZUC54Zij1z9bFiHR
2026-04-24 22:14:54 +00:00
..
2025-04-29 16:15:18 +02:00
2026-04-21 22:11:40 +02:00
2026-04-04 11:51:50 +02:00
2026-03-11 16:07:31 +01:00
2026-03-24 12:44:47 +01:00
2025-04-12 11:46:42 +02:00
2026-03-24 12:44:47 +01:00
2025-04-12 11:46:42 +02:00
2026-03-23 10:38:28 +01:00
2025-06-02 12:11:00 +02:00
2025-04-12 11:46:42 +02:00
2026-04-21 22:11:40 +02:00
2025-04-12 11:46:42 +02:00
2025-04-12 11:46:42 +02:00
2026-04-22 08:16:44 +02:00
2026-03-30 10:01:49 +02:00
2026-03-23 10:38:28 +01:00
2025-06-13 16:12:28 +02:00
2026-03-23 10:38:28 +01:00
2026-03-22 20:44:37 +01:00
2025-04-12 11:46:42 +02:00
2026-04-04 11:51:50 +02:00
2025-04-12 11:46:42 +02:00