Built site for AMR@3.0.1.9138: 499b039

This commit is contained in:
github-actions committed 2026-10-15 10:00:58 +00:00
1 parent 840ba97370
commit c3087b8247
152 files changed
+1685 -1369

No files matched your search

+17 -8
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9137</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9138</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
@@ -49,10 +49,10 @@
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="3.0.1.9137" id="amr-3019137">AMR 3.0.1.9137<a class="anchor" aria-label="anchor" href="#amr-3019137"></a></h2>
<h2 class="pkg-version" data-toc-text="3.0.1.9138" id="amr-3019138">AMR 3.0.1.9138<a class="anchor" aria-label="anchor" href="#amr-3019138"></a></h2>
<p>Planned as v3.1.0, mid October 2026.</p>
<div class="section level4">
<h4 id="breaking-3-0-1-9137">Breaking<a class="anchor" aria-label="anchor" href="#breaking-3-0-1-9137"></a></h4>
<h4 id="breaking-3-0-1-9138">Breaking<a class="anchor" aria-label="anchor" href="#breaking-3-0-1-9138"></a></h4>
<ul><li>
<p>The former <em>kingdoms</em> Bacteria and Archaea are now each divided into four kingdoms, with new top-level <em>domains</em> Bacteria and Archaea (Göker and Oren, 2024, DOI: 10.1099/ijsem.0.006242). Following this, a new <code>domain</code> column was added to the <code>microorganisms</code> data set, and <code><a href="../reference/mo_property.html">mo_kingdom()</a></code> now returns the formal kingdom (e.g., <code>"Pseudomonadati"</code> instead of <code>"Bacteria"</code>). Use <code><a href="../reference/mo_property.html">mo_domain()</a></code> for the old behaviour. For non-prokaryotic kingdoms (Fungi, Protozoa, etc.), <code>kingdom</code> and <code>domain</code> are identical.</p>
<table class="table"><colgroup><col width="33%"><col width="29%"><col width="37%"></colgroup><thead><tr><th>
@@ -105,10 +105,11 @@
<li><p>Parallel computing in <code><a href="../reference/as.sir.html">as.sir()</a></code>, <code><a href="../reference/antibiogram.html">antibiogram()</a></code>, and <code><a href="../reference/antibiogram.html">wisca()</a></code> now uses the <code>future</code> and <code>future.apply</code> packages, which is faster. A non-sequential plan (e.g., <code>future::plan(future::multisession)</code>) must be active before using <code>parallel = TRUE</code> (<a href="https://github.com/msberends/AMR/issues/281" class="external-link">#281</a>).</p></li>
<li><p>The options of <code>capped_mic_handling</code> in <code><a href="../reference/as.sir.html">as.sir()</a></code> have been redefined as <code>"none"</code>, <code>"conservative"</code>, <code>"standard"</code> (default), and <code>"lenient"</code>. The option <code>"inverse"</code> is no longer available (<a href="https://github.com/msberends/AMR/issues/243" class="external-link">#243</a>).</p></li>
<li><p><code><a href="../reference/as.sir.html">as.sir()</a></code> now returns WT/NWT (Wildtype/Non-wildtype) instead of S/R when using ECOFF-based interpretation with <code>breakpoint_type = "ECOFF"</code>. WT/NWT results are fully supported in all resistance and susceptibility functions and in all plots (<a href="https://github.com/msberends/AMR/issues/254" class="external-link">#254</a>).</p></li>
<li><p><code><a href="../reference/count.html">count_df()</a></code>, <code><a href="../reference/proportion.html">proportion_df()</a></code>, and <code><a href="../reference/proportion.html">sir_df()</a></code> now follow the <code>AMR_guideline</code> option through their new <code>guideline</code> argument. With CLSI, <code>combine_SI = TRUE</code> merges ‘I’ with R into <code>"IR"</code> and returns <code>"S"</code> vs. <code>"IR"</code>, consistent with <code><a href="../reference/count.html">count_susceptible()</a></code> and <code><a href="../reference/proportion.html">susceptibility()</a></code>. Previously, these functions always merged ‘I’ with S, as with EUCAST. Use <code>guideline = "EUCAST"</code> for the old behaviour. This also applies to <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code>, <code><a href="../reference/ggplot_sir.html">geom_sir()</a></code>, and <code><a href="../reference/plot.html">labels_sir_count()</a></code>, which got the same argument.</p></li>
<li><p>Aggregated analyses now follow the guideline for the ‘I’ category, set with the new <code>guideline</code> argument or the <code>AMR_guideline</code> option: EUCAST considers ‘I’ susceptible and CLSI considers ‘I’ resistant, while SDD and WT are always considered susceptible, and NWT and NS always resistant (see section <em>Interpretation of SIR</em> in <code><a href="../reference/as.sir.html">?as.sir</a></code>). This applies to <code><a href="../reference/count.html">count_df()</a></code>, <code><a href="../reference/proportion.html">proportion_df()</a></code>, <code><a href="../reference/proportion.html">sir_df()</a></code>, <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code>, <code><a href="../reference/ggplot_sir.html">geom_sir()</a></code>, and <code><a href="../reference/ggplot_sir.html">labels_sir_count()</a></code>, which with CLSI now return <code>"S"</code> vs. <code>"IR"</code> instead of <code>"SI"</code> vs. <code>"R"</code>, and to <code><a href="../reference/antibiogram.html">antibiogram()</a></code>, <code><a href="../reference/antibiogram.html">wisca()</a></code>, and <code><a href="https://rdrr.io/r/base/format.html" class="external-link">format()</a></code> on the output of <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code>. Previously, these functions always considered ‘I’ susceptible, as with EUCAST. Use <code>guideline = "EUCAST"</code> for the old behaviour.</p></li>
<li><p>The <code>combine_SI</code> argument of these functions is deprecated in favour of <code>guideline</code>. While set, it is followed literally and takes precedence over <code>guideline</code>. Use <code>guideline = NULL</code> instead of <code>combine_SI = FALSE</code> to keep S, I, and R separate.</p></li>
</ul></div>
<div class="section level4">
<h4 id="new-3-0-1-9137">New<a class="anchor" aria-label="anchor" href="#new-3-0-1-9137"></a></h4>
<h4 id="new-3-0-1-9138">New<a class="anchor" aria-label="anchor" href="#new-3-0-1-9138"></a></h4>
<ul><li>
<strong>Updated clinical breakpoints</strong>
<ul><li>EUCAST 2026 and CLSI 2026 are now supported, by adding over 5,700 new breakpoints to the <code>clinical_breakpoints</code> data set. EUCAST 2026 is now the default guideline for all MIC and disk diffusion interpretations.</li>
@@ -154,7 +155,7 @@
</ul></li>
</ul></div>
<div class="section level4">
<h4 id="changed-3-0-1-9137">Changed<a class="anchor" aria-label="anchor" href="#changed-3-0-1-9137"></a></h4>
<h4 id="changed-3-0-1-9138">Changed<a class="anchor" aria-label="anchor" href="#changed-3-0-1-9138"></a></h4>
<ul><li>SIR interpretation (<code><a href="../reference/as.sir.html">as.sir()</a></code>)
<ul><li>New argument <code>enforce_method</code> (<code>"auto"</code>, <code>"mic"</code>, or <code>"disk"</code>) to force the interpretation method when S3 class information is lost, e.g., when called from Python (<a href="https://github.com/msberends/AMR/issues/291" class="external-link">#291</a>)</li>
<li>When input consists of whole numbers only, disk zones are now assumed rather than MIC values (<a href="https://github.com/msberends/AMR/issues/291" class="external-link">#291</a>)</li>
@@ -231,9 +232,12 @@
<code><a href="../reference/antibiogram.html">wisca()</a></code> now follows Bielicki <em>et al.</em> (2016) more strictly by using <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext mathvariant="normal">Beta</mtext><mo stretchy="false" form="prefix">(</mo><mn>1</mn><mo>,</mo><mn>9999</mn><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">\text{Beta}(1, 9999)</annotation></semantics></math> for intrinsically resistant pairs, forcing near-zero susceptibility regardless of observed data (based on EUCAST Expected Resistant Phenotypes)</li>
<li>Fixed a bug where both functions failed without the <code>antimicrobials</code> argument if <code>tidyselect</code> was not available, e.g., for binary installations without <code>dplyr</code>
</li>
<li>Isolates of unknown species are now included in grouped antibiograms and in <code><a href="../reference/antibiogram.html">wisca()</a></code>, as they already were in traditional antibiograms. They were previously excluded silently, with the warning “invalid microorganism code, NA generated”. This can change WISCA coverage estimates.</li>
<li>Grouped traditional antibiograms now show the (translated) pathogen names, as ungrouped antibiograms do, instead of microorganism codes</li>
</ul></li>
<li>Resistance and susceptibility calculation
<ul><li>New argument <code>guideline</code> (default: EUCAST) in <code><a href="../reference/proportion.html">susceptibility()</a></code>, <code><a href="../reference/proportion.html">resistance()</a></code>, <code><a href="../reference/count.html">count_df()</a></code>, <code><a href="../reference/proportion.html">proportion_df()</a></code>, <code><a href="../reference/proportion.html">sir_df()</a></code>, <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code>, <code><a href="../reference/ggplot_sir.html">geom_sir()</a></code>, and <code><a href="../reference/plot.html">labels_sir_count()</a></code> to interpret the ‘I’ category correctly per guideline</li>
<ul><li>New argument <code>guideline</code> (default: the <code>AMR_guideline</code> option, otherwise EUCAST) in <code><a href="../reference/proportion.html">susceptibility()</a></code>, <code><a href="../reference/proportion.html">resistance()</a></code>, <code><a href="../reference/count.html">count_df()</a></code>, <code><a href="../reference/proportion.html">proportion_df()</a></code>, <code><a href="../reference/proportion.html">sir_df()</a></code>, <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code>, <code><a href="../reference/ggplot_sir.html">geom_sir()</a></code>, <code><a href="../reference/ggplot_sir.html">labels_sir_count()</a></code>, <code><a href="../reference/antibiogram.html">antibiogram()</a></code>, <code><a href="../reference/antibiogram.html">wisca()</a></code>, and <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code> to interpret the ‘I’ category correctly per guideline. Functions that return results per category also accept <code>guideline = NULL</code> to keep S, I, and R separate, while functions that return a single proportion or count give an informative error.</li>
<li>When EUCAST is assumed because neither the <code>guideline</code> argument nor the <code>AMR_guideline</code> option is set, a message explains how to change this, once per session and not in R Markdown or Quarto documents</li>
<li>
<code>count_*()</code> and <code>proportion_*()</code> now handle WT, NWT, NS, and NI results correctly (<a href="https://github.com/msberends/AMR/issues/321" class="external-link">#321</a>)</li>
</ul></li>
@@ -271,12 +275,17 @@
<code><a href="../reference/AMR-deprecated.html">custom_eucast_rules()</a></code> has been renamed to <code><a href="../reference/custom_interpretive_rules.html">custom_interpretive_rules()</a></code>. The old name is now deprecated but still works (<a href="https://github.com/msberends/AMR/issues/268" class="external-link">#268</a>).</li>
<li>Logical comparison (<code>==</code>, <code>!=</code>) of the <code>sir</code> class with a <code>factor</code> is now possible on R &gt;= 4.3</li>
<li>New argument <code>guideline</code> in <code><a href="../reference/random.html">random_mic()</a></code> and <code><a href="../reference/random.html">random_disk()</a></code>, defaulting to the <code>AMR_guideline</code> option (otherwise EUCAST), so that generated values are based on the latest breakpoints of one guideline instead of those of all guidelines and years combined</li>
<li>Fixed <code><a href="https://rdrr.io/r/base/format.html" class="external-link">format()</a></code> on the output of <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code>, which counted I and SDD as resistant with the default <code>combine_SI = TRUE</code>, contrary to its documentation. It now reads the guideline used in <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code>, which can be overridden with its own <code>guideline</code> argument, and also counts NS as resistant.</li>
<li>Fixed a bug in <code><a href="../reference/g.test.html">g.test()</a></code> that returned the degrees of freedom as <code>argument</code> instead of <code>parameter</code>, so that they were not printed</li>
<li>Fixed a bug where R could crash after unloading the <code>data.table</code> package, and where suggested packages available on the machine that built the package were used even if they were not available to the user</li>
</ul></div>
<div class="section level4">
<h4 id="other-3-0-1-9137">Other<a class="anchor" aria-label="anchor" href="#other-3-0-1-9137"></a></h4>
<h4 id="other-3-0-1-9138">Other<a class="anchor" aria-label="anchor" href="#other-3-0-1-9138"></a></h4>
<ul><li>Improved console messages with clickable links throughout the package, powered by <code>cli</code> if it is installed (<a href="https://github.com/msberends/AMR/issues/191" class="external-link">#191</a>, <a href="https://github.com/msberends/AMR/issues/265" class="external-link">#265</a>)</li>
<li>The section <em>Interpretation of SIR</em> (in <code><a href="../reference/as.sir.html">?as.sir</a></code>) now explains for all functions with a <code>guideline</code> argument for aggregated analyses how S, SDD, I, R, WT, NWT, NS, and NI are categorised per guideline. The handling of ‘I’ per MDRO guideline in <code><a href="../reference/mdro.html">mdro()</a></code> will be revised in a future version (<a href="https://github.com/msberends/AMR/issues/323" class="external-link">#323</a>).</li>
<li>
<code><a href="../reference/ggplot_sir.html">labels_sir_count()</a></code> is now documented together with <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code>
</li>
<li>The documentation of <code><a href="../reference/translate.html">get_AMR_locale()</a></code> now describes the actual order in which the language is determined: the <code>AMR_locale</code> option, then the <code>LANG</code> system variable, then <code>LANGUAGE</code> only if <code>LANG</code> is not set, and then the system locale</li>
<li>Revamped console output of <code><a href="../reference/interpretive_rules.html">interpretive_rules()</a></code>, with section headers, S/I/R values styled as in the printing of <code>sir</code> columns in tibbles, and the summary of edits sorted by SIR level, using <code>cli</code> if it is installed (<a href="https://github.com/msberends/AMR/issues/259" class="external-link">#259</a>)</li>
<li>The printing of <code><a href="../reference/custom_interpretive_rules.html">custom_interpretive_rules()</a></code> and <code><a href="../reference/custom_mdro_guideline.html">custom_mdro_guideline()</a></code> now styles SIR values as in tibbles, i.e., the colour of <code>I</code> depends on the guideline. <code>WT</code>, <code>NWT</code>, and <code>NS</code> were previously shown as <code>SDD</code>, <code>I</code>, and <code>R</code>, and values other than <code>S</code> and <code>R</code> as <code>I</code>.</li>
+65 -16
View File
@@ -1,6 +1,6 @@
# Changelog
## AMR 3.0.1.9137
## AMR 3.0.1.9138
Planned as v3.1.0, mid October 2026.
@@ -63,20 +63,31 @@ Planned as v3.1.0, mid October 2026.
fully supported in all resistance and susceptibility functions and in
all plots ([\#254](https://github.com/msberends/AMR/issues/254)).
- [`count_df()`](https://amr-for-r.org/reference/count.md),
- Aggregated analyses now follow the guideline for the ‘I’ category, set
with the new `guideline` argument or the `AMR_guideline` option:
EUCAST considers ‘I’ susceptible and CLSI considers ‘I’ resistant,
while SDD and WT are always considered susceptible, and NWT and NS
always resistant (see section *Interpretation of SIR* in
[`?as.sir`](https://amr-for-r.org/reference/as.sir.md)). This applies
to [`count_df()`](https://amr-for-r.org/reference/count.md),
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md),
and [`sir_df()`](https://amr-for-r.org/reference/proportion.md) now
follow the `AMR_guideline` option through their new `guideline`
argument. With CLSI, `combine_SI = TRUE` merges ‘I’ with R into `"IR"`
and returns `"S"` vs. `"IR"`, consistent with
[`count_susceptible()`](https://amr-for-r.org/reference/count.md) and
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md).
Previously, these functions always merged ‘I’ with S, as with EUCAST.
Use `guideline = "EUCAST"` for the old behaviour. This also applies to
[`sir_df()`](https://amr-for-r.org/reference/proportion.md),
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md), and
[`labels_sir_count()`](https://amr-for-r.org/reference/plot.md), which
got the same argument.
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md),
which with CLSI now return `"S"` vs. `"IR"` instead of `"SI"`
vs. `"R"`, and to
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md),
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), and
[`format()`](https://rdrr.io/r/base/format.html) on the output of
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md).
Previously, these functions always considered ‘I’ susceptible, as with
EUCAST. Use `guideline = "EUCAST"` for the old behaviour.
- The `combine_SI` argument of these functions is deprecated in favour
of `guideline`. While set, it is followed literally and takes
precedence over `guideline`. Use `guideline = NULL` instead of
`combine_SI = FALSE` to keep S, I, and R separate.
#### New
@@ -339,17 +350,35 @@ Planned as v3.1.0, mid October 2026.
- Fixed a bug where both functions failed without the `antimicrobials`
argument if `tidyselect` was not available, e.g., for binary
installations without `dplyr`
- Isolates of unknown species are now included in grouped antibiograms
and in [`wisca()`](https://amr-for-r.org/reference/antibiogram.md),
as they already were in traditional antibiograms. They were
previously excluded silently, with the warning “invalid
microorganism code, NA generated”. This can change WISCA coverage
estimates.
- Grouped traditional antibiograms now show the (translated) pathogen
names, as ungrouped antibiograms do, instead of microorganism codes
- Resistance and susceptibility calculation
- New argument `guideline` (default: EUCAST) in
- New argument `guideline` (default: the `AMR_guideline` option,
otherwise EUCAST) in
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md),
[`resistance()`](https://amr-for-r.org/reference/proportion.md),
[`count_df()`](https://amr-for-r.org/reference/count.md),
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md),
[`sir_df()`](https://amr-for-r.org/reference/proportion.md),
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md), and
[`labels_sir_count()`](https://amr-for-r.org/reference/plot.md) to
interpret the ‘I’ category correctly per guideline
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md),
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), and
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md)
to interpret the ‘I’ category correctly per guideline. Functions
that return results per category also accept `guideline = NULL` to
keep S, I, and R separate, while functions that return a single
proportion or count give an informative error.
- When EUCAST is assumed because neither the `guideline` argument nor
the `AMR_guideline` option is set, a message explains how to change
this, once per session and not in R Markdown or Quarto documents
- `count_*()` and `proportion_*()` now handle WT, NWT, NS, and NI
results correctly
([\#321](https://github.com/msberends/AMR/issues/321))
@@ -429,6 +458,15 @@ Planned as v3.1.0, mid October 2026.
defaulting to the `AMR_guideline` option (otherwise EUCAST), so that
generated values are based on the latest breakpoints of one guideline
instead of those of all guidelines and years combined
- Fixed [`format()`](https://rdrr.io/r/base/format.html) on the output
of
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md),
which counted I and SDD as resistant with the default
`combine_SI = TRUE`, contrary to its documentation. It now reads the
guideline used in
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md),
which can be overridden with its own `guideline` argument, and also
counts NS as resistant.
- Fixed a bug in [`g.test()`](https://amr-for-r.org/reference/g.test.md)
that returned the degrees of freedom as `argument` instead of
`parameter`, so that they were not printed
@@ -443,6 +481,17 @@ Planned as v3.1.0, mid October 2026.
powered by `cli` if it is installed
([\#191](https://github.com/msberends/AMR/issues/191),
[\#265](https://github.com/msberends/AMR/issues/265))
- The section *Interpretation of SIR* (in
[`?as.sir`](https://amr-for-r.org/reference/as.sir.md)) now explains
for all functions with a `guideline` argument for aggregated analyses
how S, SDD, I, R, WT, NWT, NS, and NI are categorised per guideline.
The handling of ‘I’ per MDRO guideline in
[`mdro()`](https://amr-for-r.org/reference/mdro.md) will be revised in
a future version
([\#323](https://github.com/msberends/AMR/issues/323)).
- [`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
is now documented together with
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
- The documentation of
[`get_AMR_locale()`](https://amr-for-r.org/reference/translate.md) now
describes the actual order in which the language is determined: the