prepare for CRAN

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-10-20 14:51:48 +02:00
1 parent 7dc96794be
commit 7cda9e575b
46 files changed
+7863 -5663

No files matched your search

+5 -3
View File
@@ -203,7 +203,7 @@ mdro <- function(x = NULL,
}
info.bak <- info
# don't thrown info's more than once per call
# don't throw info's more than once per call
if (isTRUE(info)) {
info <- message_not_thrown_before("mdro")
}
@@ -1611,10 +1611,12 @@ mdro <- function(x = NULL,
function(y) all(is.na(y))
))
if (length(rows_empty) > 0) {
cat(font_italic(paste0(" (", length(rows_empty), " isolates had no test results)\n")))
if (isTRUE(info.bak)) {
cat(font_italic(paste0(" (", length(rows_empty), " isolates had no test results)\n")))
}
x[rows_empty, "MDRO"] <- NA
x[rows_empty, "reason"] <- "none of the antibiotics have test results"
} else {
} else if (isTRUE(info.bak)) {
cat("\n")
}