mirror of
https://github.com/msberends/AMR.git
synced 2026-03-19 17:42:28 +01:00
Replace {.fun} with {.help} for all exported functions in messaging
All function names referenced via {.fun …} in cli-style messages are
exported in NAMESPACE, so {.help …} is the appropriate markup — it
renders as a clickable help link rather than plain function styling.
https://claude.ai/code/session_01XHWLohiSTdZvCutwD7ag2b
This commit is contained in:
@@ -210,7 +210,7 @@ get_column_abx <- function(x,
|
||||
newnames <- suppressWarnings(as.ab(names(dots), info = FALSE))
|
||||
if (anyNA(newnames)) {
|
||||
if (isTRUE(info)) {
|
||||
message_("WARNING: some columns returned NA for {.fun as.ab}", as_note = FALSE)
|
||||
message_("WARNING: some columns returned NA for {.help as.ab}", as_note = FALSE)
|
||||
}
|
||||
warning_("Invalid antibiotic reference(s): ", vector_and(names(dots)[is.na(newnames)], quotes = FALSE),
|
||||
call = FALSE,
|
||||
@@ -267,7 +267,7 @@ get_column_abx <- function(x,
|
||||
if (all_okay == TRUE) {
|
||||
message_(" OK.", as_note = FALSE)
|
||||
} else if (!isFALSE(dups)) {
|
||||
message_("WARNING: some results from {.fun as.ab} are duplicated: ", vector_and(dups, quotes = "`"), as_note = FALSE)
|
||||
message_("WARNING: some results from {.help as.ab} are duplicated: ", vector_and(dups, quotes = "`"), as_note = FALSE)
|
||||
} else {
|
||||
message_(" WARNING.", as_note = FALSE)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user