Skip to content

Commit 33fb184

Browse files
committed
(v3.0.0.9036) Prepare for v3.0.1
1 parent 13f2a86 commit 33fb184

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: AMR
2-
Version: 3.0.0.9035
3-
Date: 2025-09-18
2+
Version: 3.0.0.9036
3+
Date: 2025-09-19
44
Title: Antimicrobial Resistance Data Analysis
55
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
66
data analysis and to work with microbial and antimicrobial properties by

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AMR 3.0.0.9035
1+
# AMR 3.0.0.9036
22

33
This is a bugfix release following the release of v3.0.0 in June 2025.
44

R/plotting.R

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,14 @@ create_scale_mic <- function(aest, keep_operators, mic_range = NULL, ...) {
284284
self$mic_values_levels[1] <- paste0("<=", self$mic_values_levels[1])
285285
self$mic_values_levels[length(self$mic_values_levels)] <- paste0(">=", self$mic_values_levels[length(self$mic_values_levels)])
286286
}
287-
288287
self$mic_values_log <- log2(as.double(self$mic_values_rescaled))
289-
if (aest == "y" && "group" %in% colnames(df) && "x" %in% colnames(df)) {
290-
out$group <- as.integer(factor(df$x))
288+
289+
if (aest == "y" && "group" %in% colnames(df)) {
290+
if (!"x" %in% colnames(df) || all(is.na(df$x))) {
291+
out$group <- 1
292+
} else {
293+
out$group <- as.integer(factor(df$x))
294+
}
291295
}
292296
out[[aest]] <- self$mic_values_log
293297
}
@@ -329,7 +333,7 @@ create_scale_mic <- function(aest, keep_operators, mic_range = NULL, ...) {
329333
rng <- range(log2(as.mic(self$mic_values_levels)))
330334
# add 0.5 extra space
331335
rng <- c(rng[1] - 0.5, rng[2] + 0.5)
332-
if (!is.na(x[1]) && x[1] == 0) {
336+
if (!is.null(x) && !is.na(x[1]) && x[1] == 0) {
333337
# scale that start at 0 must remain so, e.g. in case of geom_col()
334338
rng[1] <- 0
335339
}

cran-comments.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
This version is a bugfix release (v3.0.1) following the release of v3.0.0 in June 2025.
2+
13
As with all previous >20 releases, some CHECKs on `oldrel` may return a `NOTE` for narrowly exceeding the installation size limit. This has been reduced to a minimum in prior coordination with CRAN maintainers and currently returns only an `INFO` on `release` and `devel`.
24

35
We treat this as a high-impact package: it was published in the *Journal of Statistical Software* (2022), is listed in the CRAN Task View "Epidemiology", and (based on cranlogs download statistics) is used globally. If there is anything to address, we would appreciate being informed before archiving the current version. We conduct extensive automated unit testing and have no indication of unresolved issues.

0 commit comments

Comments
 (0)