mirror of
https://github.com/msberends/AMR.git
synced 2026-06-29 20:56:19 +02:00
(v3.0.1.9076) fix: normalise year-qualified AMR_guideline option in all affected functions
This commit is contained in:
2
R/sir.R
2
R/sir.R
@@ -2119,7 +2119,7 @@ pillar_shaft.sir <- function(x, ...) {
|
||||
out[is.na(x)] <- pillar::style_subtle(" NA")
|
||||
out[x == "S"] <- font_green_bg(" S ") # has font_black internally
|
||||
out[x == "SDD"] <- font_green_lighter_bg(" SDD ") # has font_black internally
|
||||
if (getOption("AMR_guideline", "EUCAST")[1] == "EUCAST") {
|
||||
if (getOption("AMR_guideline", "EUCAST")[1] %like% "EUCAST") {
|
||||
out[x == "I"] <- font_green_lighter_bg(" I ") # has font_black internally
|
||||
} else {
|
||||
out[x == "I"] <- font_orange_bg(" I ") # has font_black internally
|
||||
|
||||
Reference in New Issue
Block a user