1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 07:51:57 +02:00

(v1.0.0.9005) info printing only in interactive mode

This commit is contained in:
2020-02-21 21:13:38 +01:00
parent 47fe8b7820
commit ea32e9916a
28 changed files with 52 additions and 36 deletions

View File

@ -197,7 +197,7 @@ EUCAST_VERSION_EXPERT_RULES <- "3.1, 2016"
#' }
eucast_rules <- function(x,
col_mo = NULL,
info = TRUE,
info = interactive(),
rules = c("breakpoints", "expert", "other", "all"),
verbose = FALSE,
...) {

View File

@ -148,7 +148,7 @@ first_isolate <- function(x,
type = "keyantibiotics",
ignore_I = TRUE,
points_threshold = 2,
info = TRUE,
info = interactive(),
include_unknown = FALSE,
...) {

View File

@ -84,7 +84,7 @@
mdro <- function(x,
guideline = "CMI2012",
col_mo = NULL,
info = TRUE,
info = interactive(),
pct_required_classes = 0.5,
combine_SI = TRUE,
verbose = FALSE,

View File

@ -125,6 +125,7 @@ search_type_in_df <- function(x, type) {
found <- colnames(x)[colnames(x) %like% "(urine|urinary)"][1]
}
if (!is.null(found)) {
# this column should contain logicals
if (!is.logical(x[, found, drop = TRUE])) {
message(red(paste0("NOTE: Column `", bold(found), "` found as input for `col_", type,
"`, but this column does not contain 'logical' values (TRUE/FALSE) and was ignored.")))

View File

@ -121,7 +121,7 @@ resistance_predict <- function(x,
model = NULL,
I_as_S = TRUE,
preserve_measurements = TRUE,
info = TRUE,
info = interactive(),
...) {
if (nrow(x) == 0) {