(v2.1.1.9274) Improve is_sir_eligible, rename verbose MDRO output

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2025-05-12 12:35:11 +02:00
1 parent 3f9012dc47
commit 7d45ca9fbf
7 files changed
+26 -21

No files matched your search

+5
View File
@@ -282,6 +282,11 @@ test_that("test-mdro.R", {
# info = FALSE
# ))
expect_equal(
colnames(suppressWarnings(mdro(example_isolates[1:10, ], verbose = TRUE, info = FALSE))),
c("row_number", "microorganism", "MDRO", "reason", "all_nonsusceptible_columns")
)
# print groups
if (AMR:::pkg_is_available("dplyr", min_version = "1.0.0", also_load = TRUE)) {
expect_output(x <- mdro(example_isolates %>% group_by(ward), info = TRUE, pct_required_classes = 0))