@@ -147,21 +147,21 @@ make the structure of your data generally look like this:
-
2026-03-20
+
2026-03-22
abcd
Escherichia coli
S
S
-
2026-03-20
+
2026-03-22
abcd
Escherichia coli
S
R
-
2026-03-20
+
2026-03-22
efgh
Escherichia coli
R
@@ -224,16 +224,16 @@ short, but still human readable. More importantly,
as.mo("Klebsiella pneumoniae")
-#> Class 'mo'
+#> Class <mo>#> [1] B_KLBSL_PNMNas.mo("K. pneumoniae")
-#> Class 'mo'
+#> Class <mo>#> [1] B_KLBSL_PNMNas.mo("KLEPNE")
-#> Class 'mo'
+#> Class <mo>#> [1] B_KLBSL_PNMNas.mo("KLPN")
-#> Class 'mo'
+#> Class <mo>#> [1] B_KLBSL_PNMN
The first character in above codes denote their taxonomic kingdom,
such as Bacteria (B), Fungi (F), and Protozoa (P).
@@ -266,16 +266,14 @@ user input can be used:
#> ℹ Retrieved values from the `microorganisms.codes` data set for "ESCCOL",#> "KLEPNE", "STAAUR", and "STRPNE".#> ℹ Microorganism translation was uncertain for four microorganisms. Run
-#> `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to review these
-#> uncertainties, or use `add_custom_microorganisms()`
-#> (`?AMR::add_custom_microorganisms()`) to add custom entries.
+#> `?mo_uncertainties()` to review these uncertainties, or use
+#> `?add_custom_microorganisms()` to add custom entries.
Apparently, there was some uncertainty about the translation to
taxonomic codes. Let’s check this:
mo_uncertainties()#> Matching scores are based on the resemblance between the input and the full
-#> taxonomic name, and the pathogenicity in humans. See `mo_matching_score()`
-#> (`?AMR::mo_matching_score()`).
+#> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`.#> Colour keys: 0.000-0.549 0.550-0.649 0.650-0.749 0.750-1.000 #> -------------------------------------------------------------------------------#> "E. coli" -> Escherichia coli (B_ESCHR_COLI, 0.688)
@@ -307,10 +305,9 @@ taxonomic codes. Let’s check this:
#> pseudintermedius (0.532), Serratia proteamaculans proteamaculans (0.526),#> Streptococcus gallolyticus pasteurianus (0.526), Salmonella Portanigra (0.524),#> and Streptococcus periodonticum (0.519)
-#> ℹ Only the first 10 other matches of each record are shown. Run
-#> `print(mo_uncertainties(), n = ...)` (`?AMR::mo_uncertainties()`) to view
-#> more entries, or save `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to an
-#> object.
+#> ℹ Only the first 10 other matches of each record are shown. Run ``
+#> ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save
+#> `?mo_uncertainties()` to an object.
That’s all good.
@@ -522,7 +519,8 @@ in:
our_data_1st%>%select(date, aminoglycosides())
-#> ℹ For `aminoglycosides()` using column 'GEN' (gentamicin)
+#> ℹ For `?aminoglycosides()` using column GEN
+#> (gentamicin)#> # A tibble: 2,724 × 2#> date GEN #> <date><sir>
@@ -540,7 +538,7 @@ in:
our_data_1st%>%select(bacteria, betalactams())
-#> ℹ For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
+#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC#> (amoxicillin/clavulanic acid)#> # A tibble: 2,724 × 3#> bacteria AMX AMC
@@ -577,7 +575,8 @@ in:
# filtering using AB selectors is also possible:our_data_1st%>%filter(any(aminoglycosides()=="R"))
-#> ℹ For `aminoglycosides()` using column 'GEN' (gentamicin)
+#> ℹ For `?aminoglycosides()` using column GEN
+#> (gentamicin)#> # A tibble: 981 × 9#> patient_id hospital date bacteria AMX AMC CIP GEN first#> <chr><chr><date><mo><sir><sir><sir><sir><lgl>
@@ -595,7 +594,7 @@ in:
our_data_1st%>%filter(all(betalactams()=="R"))
-#> ℹ For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
+#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC#> (amoxicillin/clavulanic acid)#> # A tibble: 462 × 9#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -614,7 +613,7 @@ in:
# even works in base R (since R 3.0):our_data_1st[all(betalactams()=="R"), ]
-#> ℹ For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
+#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC#> (amoxicillin/clavulanic acid)#> # A tibble: 462 × 9#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -696,9 +695,9 @@ previously mentioned antibiotic class selectors:
antibiogram(example_isolates, antibiotics =c(aminoglycosides(), carbapenems()))
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `carbapenems()` using columns 'IPM' (imipenem) and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
@@ -827,8 +826,8 @@ language to be Spanish using the language argument:
antibiotics =aminoglycosides(), ab_transform ="name", language ="es")
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
@@ -953,9 +952,9 @@ argument must be used. This can be any column in the data, or e.g. an
antibiogram(example_isolates, antibiotics =c(aminoglycosides(), carbapenems()), syndromic_group ="ward")
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `carbapenems()` using columns 'IPM' (imipenem) and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
our_data_1st%>%resistance(AMX)
-#> ℹ `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
-#> considers the 'I' category susceptible. Set the `guideline` argument or the
-#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.#> ℹ This message will be shown once per session.#> [1] 0.4203377
Or can be used in conjunction with group_by() and
diff --git a/articles/AMR.md b/articles/AMR.md
index 349828333..5304a52c4 100644
--- a/articles/AMR.md
+++ b/articles/AMR.md
@@ -3,7 +3,7 @@
**Note:** values on this page will change with every website update
since they are based on randomly created values and the page was written
in [R Markdown](https://rmarkdown.rstudio.com/). However, the
-methodology remains unchanged. This page was generated on 20 March 2026.
+methodology remains unchanged. This page was generated on 22 March 2026.
## Introduction
@@ -51,9 +51,9 @@ structure of your data generally look like this:
| date | patient_id | mo | AMX | CIP |
|:----------:|:----------:|:----------------:|:---:|:---:|
-| 2026-03-20 | abcd | Escherichia coli | S | S |
-| 2026-03-20 | abcd | Escherichia coli | S | R |
-| 2026-03-20 | efgh | Escherichia coli | R | S |
+| 2026-03-22 | abcd | Escherichia coli | S | S |
+| 2026-03-22 | abcd | Escherichia coli | S | R |
+| 2026-03-22 | efgh | Escherichia coli | R | S |
### Needed R packages
@@ -120,16 +120,16 @@ of input:
``` r
as.mo("Klebsiella pneumoniae")
-#> Class 'mo'
+#> Class
#> [1] B_KLBSL_PNMN
as.mo("K. pneumoniae")
-#> Class 'mo'
+#> Class
#> [1] B_KLBSL_PNMN
as.mo("KLEPNE")
-#> Class 'mo'
+#> Class
#> [1] B_KLBSL_PNMN
as.mo("KLPN")
-#> Class 'mo'
+#> Class
#> [1] B_KLBSL_PNMN
```
@@ -169,9 +169,8 @@ our_data$bacteria <- as.mo(our_data$bacteria, info = TRUE)
#> ℹ Retrieved values from the `microorganisms.codes` data set for "ESCCOL",
#> "KLEPNE", "STAAUR", and "STRPNE".
#> ℹ Microorganism translation was uncertain for four microorganisms. Run
-#> `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to review these
-#> uncertainties, or use `add_custom_microorganisms()`
-#> (`?AMR::add_custom_microorganisms()`) to add custom entries.
+#> `?mo_uncertainties()` to review these uncertainties, or use
+#> `?add_custom_microorganisms()` to add custom entries.
```
Apparently, there was some uncertainty about the translation to
@@ -180,8 +179,7 @@ taxonomic codes. Let’s check this:
``` r
mo_uncertainties()
#> Matching scores are based on the resemblance between the input and the full
-#> taxonomic name, and the pathogenicity in humans. See `mo_matching_score()`
-#> (`?AMR::mo_matching_score()`).
+#> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`.
#> Colour keys: 0.000-0.549 0.550-0.649 0.650-0.749 0.750-1.000
#> -------------------------------------------------------------------------------
#> "E. coli" -> Escherichia coli (B_ESCHR_COLI, 0.688)
@@ -213,10 +211,9 @@ mo_uncertainties()
#> pseudintermedius (0.532), Serratia proteamaculans proteamaculans (0.526),
#> Streptococcus gallolyticus pasteurianus (0.526), Salmonella Portanigra (0.524),
#> and Streptococcus periodonticum (0.519)
-#> ℹ Only the first 10 other matches of each record are shown. Run
-#> `print(mo_uncertainties(), n = ...)` (`?AMR::mo_uncertainties()`) to view
-#> more entries, or save `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to an
-#> object.
+#> ℹ Only the first 10 other matches of each record are shown. Run ``
+#> ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save
+#> `?mo_uncertainties()` to an object.
```
That’s all good.
@@ -450,7 +447,8 @@ in:
``` r
our_data_1st %>%
select(date, aminoglycosides())
-#> ℹ For `aminoglycosides()` using column 'GEN' (gentamicin)
+#> ℹ For `?aminoglycosides()` using column GEN
+#> (gentamicin)
#> # A tibble: 2,724 × 2
#> date GEN
#>
@@ -468,7 +466,7 @@ our_data_1st %>%
our_data_1st %>%
select(bacteria, betalactams())
-#> ℹ For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
+#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 2,724 × 3
#> bacteria AMX AMC
@@ -505,7 +503,8 @@ our_data_1st %>%
# filtering using AB selectors is also possible:
our_data_1st %>%
filter(any(aminoglycosides() == "R"))
-#> ℹ For `aminoglycosides()` using column 'GEN' (gentamicin)
+#> ℹ For `?aminoglycosides()` using column GEN
+#> (gentamicin)
#> # A tibble: 981 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
#>
@@ -523,7 +522,7 @@ our_data_1st %>%
our_data_1st %>%
filter(all(betalactams() == "R"))
-#> ℹ For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
+#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 462 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -542,7 +541,7 @@ our_data_1st %>%
# even works in base R (since R 3.0):
our_data_1st[all(betalactams() == "R"), ]
-#> ℹ For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
+#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 462 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -625,9 +624,9 @@ antibiotic class selectors:
``` r
antibiogram(example_isolates,
antibiotics = c(aminoglycosides(), carbapenems()))
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `carbapenems()` using columns 'IPM' (imipenem) and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
```
| Pathogen | Amikacin | Gentamicin | Imipenem | Kanamycin | Meropenem | Tobramycin |
@@ -664,8 +663,8 @@ antibiogram(example_isolates,
antibiotics = aminoglycosides(),
ab_transform = "name",
language = "es")
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
```
| Patógeno | Amikacina | Gentamicina | Kanamicina | Tobramicina |
@@ -708,9 +707,9 @@ on certain columns:
antibiogram(example_isolates,
antibiotics = c(aminoglycosides(), carbapenems()),
syndromic_group = "ward")
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `carbapenems()` using columns 'IPM' (imipenem) and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
```
| Syndromic Group | Pathogen | Amikacin | Gentamicin | Imipenem | Kanamycin | Meropenem | Tobramycin |
@@ -841,10 +840,9 @@ These functions can be used on their own:
``` r
our_data_1st %>% resistance(AMX)
-#> ℹ `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
-#> considers the 'I' category susceptible. Set the `guideline` argument or the
-#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.
#> ℹ This message will be shown once per session.
#> [1] 0.4203377
```
diff --git a/articles/AMR_for_Python.html b/articles/AMR_for_Python.html
index d15fc894a..5293c62b4 100644
--- a/articles/AMR_for_Python.html
+++ b/articles/AMR_for_Python.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/articles/AMR_with_tidymodels.html b/articles/AMR_with_tidymodels.html
index c64dd7cbf..d3817969b 100644
--- a/articles/AMR_with_tidymodels.html
+++ b/articles/AMR_with_tidymodels.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -179,14 +179,13 @@ package.
mo =as.factor(mo_gramstain(mo)))%>%# drop NAs - the ones without a Gramstain (fungi, etc.)drop_na()
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `betalactams()` using columns 'PEN' (benzylpenicillin), 'OXA'
-#> (oxacillin), 'FLC' (flucloxacillin), 'AMX' (amoxicillin), 'AMC'
-#> (amoxicillin/clavulanic acid), 'AMP' (ampicillin), 'TZP'
-#> (piperacillin/tazobactam), 'CZO' (cefazolin), 'FEP' (cefepime), 'CXM'
-#> (cefuroxime), 'FOX' (cefoxitin), 'CTX' (cefotaxime), 'CAZ' (ceftazidime),
-#> 'CRO' (ceftriaxone), 'IPM' (imipenem), and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
+#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
+#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
+#> (ceftazidime), CRO (ceftriaxone), IPM (imipenem), and MEM (meropenem)
Explanation:
@@ -227,14 +226,13 @@ we have with step_corr(), the necessary parameters can be
estimated from a training set using prep():
prep(resistance_recipe)
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `betalactams()` using columns 'PEN' (benzylpenicillin), 'OXA'
-#> (oxacillin), 'FLC' (flucloxacillin), 'AMX' (amoxicillin), 'AMC'
-#> (amoxicillin/clavulanic acid), 'AMP' (ampicillin), 'TZP'
-#> (piperacillin/tazobactam), 'CZO' (cefazolin), 'FEP' (cefepime), 'CXM'
-#> (cefuroxime), 'FOX' (cefoxitin), 'CTX' (cefotaxime), 'CAZ' (ceftazidime),
-#> 'CRO' (ceftriaxone), 'IPM' (imipenem), and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
+#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
+#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
+#> (ceftazidime), CRO (ceftriaxone), IPM (imipenem), and MEM (meropenem)#> #> #> ──Recipe──────────────────────────────────────────────────────────────────────
@@ -749,10 +747,9 @@ into a structured time-series format.
.groups ="drop")%>%filter(!is.na(res_AMX)&!is.na(res_AMC)&!is.na(res_CIP))# Drop missing values#> ℹ Using column 'mo' as input for `col_mo`.
-#> ℹ `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
-#> considers the 'I' category susceptible. Set the `guideline` argument or the
-#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.#> ℹ This message will be shown once per session.data_time
diff --git a/articles/AMR_with_tidymodels.md b/articles/AMR_with_tidymodels.md
index 528c273b0..7cc6ce75a 100644
--- a/articles/AMR_with_tidymodels.md
+++ b/articles/AMR_with_tidymodels.md
@@ -94,14 +94,13 @@ data <- example_isolates %>%
mo = as.factor(mo_gramstain(mo))) %>%
# drop NAs - the ones without a Gramstain (fungi, etc.)
drop_na()
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `betalactams()` using columns 'PEN' (benzylpenicillin), 'OXA'
-#> (oxacillin), 'FLC' (flucloxacillin), 'AMX' (amoxicillin), 'AMC'
-#> (amoxicillin/clavulanic acid), 'AMP' (ampicillin), 'TZP'
-#> (piperacillin/tazobactam), 'CZO' (cefazolin), 'FEP' (cefepime), 'CXM'
-#> (cefuroxime), 'FOX' (cefoxitin), 'CTX' (cefotaxime), 'CAZ' (ceftazidime),
-#> 'CRO' (ceftriaxone), 'IPM' (imipenem), and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
+#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
+#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
+#> (ceftazidime), CRO (ceftriaxone), IPM (imipenem), and MEM (meropenem)
```
**Explanation:**
@@ -144,14 +143,13 @@ a training set using `prep()`:
``` r
prep(resistance_recipe)
-#> ℹ For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
-#> 'AMK' (amikacin), and 'KAN' (kanamycin)
-#> ℹ For `betalactams()` using columns 'PEN' (benzylpenicillin), 'OXA'
-#> (oxacillin), 'FLC' (flucloxacillin), 'AMX' (amoxicillin), 'AMC'
-#> (amoxicillin/clavulanic acid), 'AMP' (ampicillin), 'TZP'
-#> (piperacillin/tazobactam), 'CZO' (cefazolin), 'FEP' (cefepime), 'CXM'
-#> (cefuroxime), 'FOX' (cefoxitin), 'CTX' (cefotaxime), 'CAZ' (ceftazidime),
-#> 'CRO' (ceftriaxone), 'IPM' (imipenem), and 'MEM' (meropenem)
+#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
+#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
+#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
+#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
+#> (ceftazidime), CRO (ceftriaxone), IPM (imipenem), and MEM (meropenem)
#>
#>
#> ── Recipe ──────────────────────────────────────────────────────────────────────
@@ -647,10 +645,9 @@ data_time <- example_isolates %>%
.groups = "drop") %>%
filter(!is.na(res_AMX) & !is.na(res_AMC) & !is.na(res_CIP)) # Drop missing values
#> ℹ Using column 'mo' as input for `col_mo`.
-#> ℹ `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
-#> considers the 'I' category susceptible. Set the `guideline` argument or the
-#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.
#> ℹ This message will be shown once per session.
data_time
diff --git a/articles/EUCAST.html b/articles/EUCAST.html
index 4ff52c71b..19eceec07 100644
--- a/articles/EUCAST.html
+++ b/articles/EUCAST.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/articles/PCA.html b/articles/PCA.html
index 62540b548..cac63b86d 100644
--- a/articles/PCA.html
+++ b/articles/PCA.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -163,10 +163,9 @@ per taxonomic order and genus:
order, genus, AMC, CXM, CTX,CAZ, GEN, TOB, TMP, SXT)# and select only relevant columns
-#> ℹ `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
-#> considers the 'I' category susceptible. Set the `guideline` argument or the
-#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.#> ℹ This message will be shown once per session.head(resistance_data)
diff --git a/articles/PCA.md b/articles/PCA.md
index b90f250cd..eed815034 100644
--- a/articles/PCA.md
+++ b/articles/PCA.md
@@ -78,10 +78,9 @@ resistance_data <- example_isolates %>%
order, genus, AMC, CXM, CTX,
CAZ, GEN, TOB, TMP, SXT
) # and select only relevant columns
-#> ℹ `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
-#> considers the 'I' category susceptible. Set the `guideline` argument or the
-#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.
#> ℹ This message will be shown once per session.
head(resistance_data)
diff --git a/articles/WHONET.html b/articles/WHONET.html
index 5d50dbcbc..f42cc5653 100644
--- a/articles/WHONET.html
+++ b/articles/WHONET.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -255,10 +255,9 @@ Longest: 40
# our transformed antibiotic columns# amoxicillin/clavulanic acid (J01CR02) as an exampledata%>%freq(AMC_ND2)
-#> ℹ `susceptibility()` (`?AMR::susceptibility()`) assumes the EUCAST guideline
-#> and thus considers the 'I' category susceptible. Set the `guideline` argument
-#> or the `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.#> ℹ This message will be shown once per session.
Frequency table
Class: factor > ordered > sir (numeric)
diff --git a/articles/WHONET.md b/articles/WHONET.md
index a69d9c2a2..6508986ef 100644
--- a/articles/WHONET.md
+++ b/articles/WHONET.md
@@ -101,10 +101,9 @@ Longest: 40
# our transformed antibiotic columns
# amoxicillin/clavulanic acid (J01CR02) as an example
data %>% freq(AMC_ND2)
-#> ℹ `susceptibility()` (`?AMR::susceptibility()`) assumes the EUCAST guideline
-#> and thus considers the 'I' category susceptible. Set the `guideline` argument
-#> or the `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
-#> (`?AMR::AMR-options`).
+#> ℹ `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see AMR-options.
#> ℹ This message will be shown once per session.
```
diff --git a/articles/WISCA.html b/articles/WISCA.html
index 8807ee537..d342fb403 100644
--- a/articles/WISCA.html
+++ b/articles/WISCA.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/articles/datasets.html b/articles/datasets.html
index f50b18908..a1b29b58e 100644
--- a/articles/datasets.html
+++ b/articles/datasets.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -80,7 +80,7 @@
Function amr_course(), which allows for automated download and unpacking of a GitHub repository for e.g. webinar use
-
Fixes
+
Fixes
Fixed a bug in as.sir() where values that were purely numeric (e.g., "1") and matched the broad SIR-matching regex would be incorrectly stripped of all content by the Unicode letter filter
Fixed a bug in as.mic() where MIC values in scientific notation (e.g., "1e-3") were incorrectly handled because the letter e was removed along with other Unicode letters; scientific notation e is now preserved
Fixed a bug in as.ab() where certain AB codes containing “PH” or “TH” (such as ETH, MTH, PHE, PHN, STH, THA, THI1) would incorrectly return NA when combined in a vector with any untranslatable value (#245)
@@ -96,7 +96,7 @@
Fixed SIR and MIC coercion of combined values, e.g. as.sir("<= 0.002; S") or as.mic("S; 0.002") (#252)
-
Updates
+
Updates
Extensive cli integration for better message handling and clickable links in messages and warnings (#191, #265)
mdro() now infers resistance for a missing base drug column from an available corresponding drug+inhibitor combination showing resistance (e.g., piperacillin is absent but required, while piperacillin/tazobactam available and resistant). Can be set with the new argument infer_from_combinations, which defaults to TRUE (#209). Note that this can yield a higher MDRO detection (which is a good thing as it has become more reliable).
diff --git a/news/index.md b/news/index.md
index 9a172bb9b..a0c13a0c1 100644
--- a/news/index.md
+++ b/news/index.md
@@ -1,6 +1,6 @@
# Changelog
-## AMR 3.0.1.9036
+## AMR 3.0.1.9037
#### New
diff --git a/pkgdown.yml b/pkgdown.yml
index 9ca307c98..8f68281f4 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
PCA: PCA.html
WHONET: WHONET.html
WISCA: WISCA.html
-last_built: 2026-03-20T16:06Z
+last_built: 2026-03-22T19:50Z
urls:
reference: https://amr-for-r.org/reference
article: https://amr-for-r.org/articles
diff --git a/reference/AMR-deprecated.html b/reference/AMR-deprecated.html
index 3884c83de..fae7f5f84 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/reference/AMR-options.html b/reference/AMR-options.html
index 1bbd9d117..17273035f 100644
--- a/reference/AMR-options.html
+++ b/reference/AMR-options.html
@@ -9,7 +9,7 @@ options(AMR_guideline = "CLSI")'>AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/reference/AMR.html b/reference/AMR.html
index 8ad11956b..5616162eb 100644
--- a/reference/AMR.html
+++ b/reference/AMR.html
@@ -21,7 +21,7 @@ The AMR package is available in English, Arabic, Bengali, Chinese, Czech, Danish
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/reference/WHOCC.html b/reference/WHOCC.html
index 25c658dd9..601ab0965 100644
--- a/reference/WHOCC.html
+++ b/reference/WHOCC.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -67,7 +67,7 @@
Examples
as.ab("meropenem")
-#> Class 'ab'
+#> Class <ab>#> [1] MEMab_name("J01DH02")#> [1] "Meropenem"
diff --git a/reference/WHOCC.md b/reference/WHOCC.md
index 98d47778a..936334abc 100644
--- a/reference/WHOCC.md
+++ b/reference/WHOCC.md
@@ -29,7 +29,7 @@ unlike any other info from this package.** See
``` r
as.ab("meropenem")
-#> Class 'ab'
+#> Class
#> [1] MEM
ab_name("J01DH02")
#> [1] "Meropenem"
diff --git a/reference/WHONET.html b/reference/WHONET.html
index 6c4683aba..b57967afa 100644
--- a/reference/WHONET.html
+++ b/reference/WHONET.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/reference/ab_from_text.html b/reference/ab_from_text.html
index ba7fd4a4d..ae447211f 100644
--- a/reference/ab_from_text.html
+++ b/reference/ab_from_text.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -124,13 +124,13 @@
# straight from a true health care record:ab_from_text("28/03/2020 regular amoxicilliin 500mg po tid")#> [[1]]
-#> Class 'ab'
+#> Class <ab>#> [1] AMX#>ab_from_text("500 mg amoxi po and 400mg cipro iv")#> [[1]]
-#> Class 'ab'
+#> Class <ab>#> [1] AMX CIP#>ab_from_text("500 mg amoxi po and 400mg cipro iv", type ="dose")
diff --git a/reference/ab_from_text.md b/reference/ab_from_text.md
index 7f58dc810..350f92ba9 100644
--- a/reference/ab_from_text.md
+++ b/reference/ab_from_text.md
@@ -123,13 +123,13 @@ With using `collapse`, this function will return a
# straight from a true health care record:
ab_from_text("28/03/2020 regular amoxicilliin 500mg po tid")
#> [[1]]
-#> Class 'ab'
+#> Class
#> [1] AMX
#>
ab_from_text("500 mg amoxi po and 400mg cipro iv")
#> [[1]]
-#> Class 'ab'
+#> Class
#> [1] AMX CIP
#>
ab_from_text("500 mg amoxi po and 400mg cipro iv", type = "dose")
diff --git a/reference/ab_property.html b/reference/ab_property.html
index 2092814fb..b238032fb 100644
--- a/reference/ab_property.html
+++ b/reference/ab_property.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
diff --git a/reference/add_custom_antimicrobials.html b/reference/add_custom_antimicrobials.html
index fca559d73..a44dc58ed 100644
--- a/reference/add_custom_antimicrobials.html
+++ b/reference/add_custom_antimicrobials.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -97,7 +97,7 @@
# \donttest{# returns a wildly guessed result:as.ab("testab")
-#> Class 'ab'
+#> Class <ab>#> [1] THA# now add a custom entry - it will be considered by as.ab() and
@@ -115,7 +115,7 @@
# "testab" is now a new antibiotic:as.ab("testab")
-#> Class 'ab'
+#> Class <ab>#> [1] TESTABab_name("testab")#> [1] "Test Antibiotic"
@@ -197,7 +197,7 @@
#> random_column coflu ampicillin#> 1 some value S Rx[, betalactams()]
-#>ℹ For `betalactams()` using columns 'coflu' (co-fluampicil) and 'ampicillin'
+#>ℹ For `?betalactams()` using columns coflu (co-fluampicil) and ampicillin#> coflu ampicillin#> 1 S R# }
diff --git a/reference/add_custom_antimicrobials.md b/reference/add_custom_antimicrobials.md
index 944317e93..5c481000d 100644
--- a/reference/add_custom_antimicrobials.md
+++ b/reference/add_custom_antimicrobials.md
@@ -85,7 +85,7 @@ to add custom microorganisms.
# \donttest{
# returns a wildly guessed result:
as.ab("testab")
-#> Class 'ab'
+#> Class
#> [1] THA
# now add a custom entry - it will be considered by as.ab() and
@@ -103,7 +103,7 @@ add_custom_antimicrobials(
# "testab" is now a new antibiotic:
as.ab("testab")
-#> Class 'ab'
+#> Class
#> [1] TESTAB
ab_name("testab")
#> [1] "Test Antibiotic"
@@ -185,7 +185,7 @@ x
#> random_column coflu ampicillin
#> 1 some value S R
x[, betalactams()]
-#> ℹ For `betalactams()` using columns 'coflu' (co-fluampicil) and 'ampicillin'
+#> ℹ For `?betalactams()` using columns coflu (co-fluampicil) and ampicillin
#> coflu ampicillin
#> 1 S R
# }
diff --git a/reference/add_custom_microorganisms.html b/reference/add_custom_microorganisms.html
index f0e3c325e..956b9349d 100644
--- a/reference/add_custom_microorganisms.html
+++ b/reference/add_custom_microorganisms.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -118,7 +118,7 @@
# its code:as.mo("Enterobacter asburiae/cloacae")
-#> Class 'mo'
+#> Class <mo>#> [1] CUSTOM1_ENTRB_ASB/# all internal algorithms will work as well:
diff --git a/reference/add_custom_microorganisms.md b/reference/add_custom_microorganisms.md
index bb10300cc..398221a01 100644
--- a/reference/add_custom_microorganisms.md
+++ b/reference/add_custom_microorganisms.md
@@ -107,7 +107,7 @@ mo_name("Enterobacter asburiae/cloacae")
# its code:
as.mo("Enterobacter asburiae/cloacae")
-#> Class 'mo'
+#> Class
#> [1] CUSTOM1_ENTRB_ASB/
# all internal algorithms will work as well:
diff --git a/reference/age.html b/reference/age.html
index 59707acbb..813c59651 100644
--- a/reference/age.html
+++ b/reference/age.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9036
+ 3.0.1.9037
@@ -112,16 +112,16 @@
df#> birth_date age age_exact age_at_y2k
-#> 1 1999-06-30 26 26.72055 0
-#> 2 1968-01-29 58 58.13699 31
-#> 3 1965-12-05 60 60.28767 34
-#> 4 1980-03-01 46 46.05205 19
-#> 5 1949-11-01 76 76.38082 50
-#> 6 1947-02-14 79 79.09315 52
-#> 7 1940-02-19 86 86.07945 59
-#> 8 1988-01-10 38 38.18904 11
-#> 9 1997-08-27 28 28.56164 2
-#> 10 1978-01-26 48 48.14521 21
+#> 1 1999-06-30 26 26.72603 0
+#> 2 1968-01-29 58 58.14247 31
+#> 3 1965-12-05 60 60.29315 34
+#> 4 1980-03-01 46 46.05753 19
+#> 5 1949-11-01 76 76.38630 50
+#> 6 1947-02-14 79 79.09863 52
+#> 7 1940-02-19 86 86.08493 59
+#> 8 1988-01-10 38 38.19452 11
+#> 9 1997-08-27 28 28.56712 2
+#> 10 1978-01-26 48 48.15068 21