Download data sets for download / own use
-05 April 2026
+21 April 2026
Source:vignettes/datasets.Rmd
datasets.RmdAMR 3.0.1.9044
+AMR 3.0.1.9045
New
+New
- Support for clinical breakpoints of 2026 of both CLSI and EUCAST, by adding all of their over 5,700 new clinical breakpoints to the
clinical_breakpointsdata set for usage inas.sir(). EUCAST 2026 is now the new default guideline for all MIC and disk diffusion interpretations. - Integration with the tidymodels framework to allow seamless use of SIR, MIC and disk data in modelling pipelines via
recipes- @@ -80,11 +80,13 @@
- Function
interpretive_rules(), which allows future implementation of CLSI interpretive rules (#235)-
eucast_rules()has become a wrapper around that function
+ - Gained argument
add_if_missing(default:TRUE). When set toFALSE, rules are only applied to cells that already contain an SIR value;NAcells are left untouched. This is useful withoverwrite = TRUEto update reported results without imputing values for drugs that were not tested (#259)
-
- Function
amr_course(), which allows for automated download and unpacking of a GitHub repository for e.g. webinar use
+ - Two new
NAobjects,NA_ab_andNA_mo_, analogous to base R’sNA_character_andNA_integer_, for use in pipelines that require typed missing values
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 letterewas removed along with other Unicode letters; scientific notationeis now preserved - Fixed a bug in
as.ab()where certain AB codes containing “PH” or “TH” (such asETH,MTH,PHE,PHN,STH,THA,THI1) would incorrectly returnNAwhen combined in a vector with any untranslatable value (#245)
@@ -99,7 +101,7 @@
- Fixed SIR and MIC coercion of combined values, e.g.
as.sir("<= 0.002; S")oras.mic("S; 0.002")(#252)
Updates
+Updates
- Extensive
cliintegration 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 argumentinfer_from_combinations, which defaults toTRUE(#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 30f22f826..62db04c12 100644
--- a/news/index.md
+++ b/news/index.md
@@ -1,6 +1,6 @@
# Changelog
-## AMR 3.0.1.9044
+## AMR 3.0.1.9045
#### New
@@ -47,10 +47,19 @@
([\#235](https://github.com/msberends/AMR/issues/235))
- [`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
has become a wrapper around that function
+ - Gained argument `add_if_missing` (default: `TRUE`). When set to
+ `FALSE`, rules are only applied to cells that already contain an SIR
+ value; `NA` cells are left untouched. This is useful with
+ `overwrite = TRUE` to update reported results without imputing
+ values for drugs that were not tested
+ ([\#259](https://github.com/msberends/AMR/issues/259))
- Function
[`amr_course()`](https://amr-for-r.org/reference/amr_course.md), which
allows for automated download and unpacking of a GitHub repository for
e.g. webinar use
+- Two new `NA` objects, `NA_ab_` and `NA_mo_`, analogous to base R’s
+ `NA_character_` and `NA_integer_`, for use in pipelines that require
+ typed missing values
#### Fixes
diff --git a/pkgdown.yml b/pkgdown.yml
index 1811d6292..d31fc5ce7 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
PCA: PCA.html
WHONET: WHONET.html
WISCA: WISCA.html
-last_built: 2026-04-05T15:31Z
+last_built: 2026-04-21T19:58Z
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 2cc11cfa9..7626425f5 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9044
+ 3.0.1.9045
AMR_breakpoint_type
A character to use inas.sir(), to indicate which breakpoint type to use. This must be either .val ECOFF, .val animal, or .val human.
+AMR_breakpoint_type
A character to use inas.sir(), to indicate which breakpoint type to use. This must be either"ECOFF","animal", or"human".AMR_capped_mic_handling
A character to use inas.sir(), to indicate how capped MIC values (<,<=,>,>=) should be interpreted. Must be one of"none","conservative","standard", or"lenient"- the default is"conservative".AMR_cleaning_regex
A regular expression (case-insensitive) to use inas.mo()and allmo_*functions, to clean the user input. The default is the outcome ofmo_cleaning_regex(), which removes texts between brackets and texts such as "species" and "serovar".AMR_custom_ab
A file location to an RDS file, to use custom antimicrobial drugs with this package. This is explained inadd_custom_antimicrobials().
diff --git a/reference/AMR-options.md b/reference/AMR-options.md
index 0f380ac48..640a5e481 100644
--- a/reference/AMR-options.md
+++ b/reference/AMR-options.md
@@ -16,8 +16,8 @@ the `AMR` package. Set them using the
- `AMR_breakpoint_type`
A [character](https://rdrr.io/r/base/character.html) to use in
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md), to indicate
- which breakpoint type to use. This must be either .val ECOFF, .val
- animal, or .val human.
+ which breakpoint type to use. This must be either `"ECOFF"`,
+ `"animal"`, or `"human"`.
- `AMR_capped_mic_handling`
A [character](https://rdrr.io/r/base/character.html) to use in
diff --git a/reference/AMR.html b/reference/AMR.html
index 468acbea0..a96c327ec 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.9044
+ 3.0.1.9045
- property -
One of the column names of one of the antimicrobials data set:
vector_or(colnames(antimicrobials), sort = FALSE).
+One of the column names of one of the antimicrobials data set:
"ab","cid","name","group","atc","atc_group1","atc_group2","abbreviations","synonyms","oral_ddd","oral_units","iv_ddd","iv_units", or"loinc".- data diff --git a/reference/ab_property.md b/reference/ab_property.md index 23d3b871d..80602db32 100644 --- a/reference/ab_property.md +++ b/reference/ab_property.md @@ -101,7 +101,9 @@ set_ab_names(data, ..., property = "name", language = get_AMR_locale(), One of the column names of one of the [antimicrobials](https://amr-for-r.org/reference/antimicrobials.md) - data set: `vector_or(colnames(antimicrobials), sort = FALSE)`. + data set: `"ab"`, `"cid"`, `"name"`, `"group"`, `"atc"`, + `"atc_group1"`, `"atc_group2"`, `"abbreviations"`, `"synonyms"`, + `"oral_ddd"`, `"oral_units"`, `"iv_ddd"`, `"iv_units"`, or `"loinc"`. - data: diff --git a/reference/add_custom_antimicrobials.html b/reference/add_custom_antimicrobials.html index 7c9dd564a..5a0a9e8de 100644 --- a/reference/add_custom_antimicrobials.html +++ b/reference/add_custom_antimicrobials.html @@ -7,7 +7,7 @@ AMR (for R) - 3.0.1.9044 + 3.0.1.9045
antibiogram(), to indicate which formatting type to use.
-



