diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml
index 515beb6c..253557a1 100644
--- a/.github/workflows/check.yaml
+++ b/.github/workflows/check.yaml
@@ -109,9 +109,10 @@ jobs:
key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-v4
- name: Install AMR and tinytest and update dependencies
+ # some old R instances have trouble installing tinytest, so we ship it too
run: |
install.packages("data-raw/AMR_latest.tar.gz")
- install.packages("data-raw/tinytest_1.2.4.tar.gz")
+ trimws <- AMR:::trimws; install.packages("data-raw/tinytest_1.2.4.tar.gz")
source("data-raw/_install_deps.R")
shell: Rscript {0}
diff --git a/DESCRIPTION b/DESCRIPTION
index ab0420fa..7b1df64e 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,5 +1,5 @@
Package: AMR
-Version: 1.6.0.9042
+Version: 1.6.0.9043
Date: 2021-05-17
Title: Antimicrobial Resistance Data Analysis
Authors@R: c(
diff --git a/NEWS.md b/NEWS.md
index 05264c82..5c16162f 100755
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,4 +1,4 @@
-# `AMR` 1.6.0.9042
+# `AMR` 1.6.0.9043
## Last updated: 17 May 2021
### New
diff --git a/R/first_isolate.R b/R/first_isolate.R
index 8ee669ac..432ab98d 100755
--- a/R/first_isolate.R
+++ b/R/first_isolate.R
@@ -50,7 +50,7 @@
#' @details
#' To conduct epidemiological analyses on antimicrobial resistance data, only so-called first isolates should be included to prevent overestimation and underestimation of antimicrobial resistance. Different methods can be used to do so, see below.
#'
-#' These functions are context-aware. This means that then the `x` argument can be left blank, see *Examples*.
+#' These functions are context-aware. This means that the `x` argument can be left blank if used inside a [data.frame] call, see *Examples*.
#'
#' The [first_isolate()] function is a wrapper around the [is_new_episode()] function, but more efficient for data sets containing microorganism codes or names.
#'
diff --git a/R/key_antimicrobials.R b/R/key_antimicrobials.R
index 9d7fdc1e..1af47321 100755
--- a/R/key_antimicrobials.R
+++ b/R/key_antimicrobials.R
@@ -37,7 +37,7 @@
#' @param only_rsi_columns a [logical] to indicate whether only columns must be included that were transformed to class `` (see [as.rsi()]) on beforehand (defaults to `FALSE`)
#' @param ... ignored, only in place to allow future extensions
#' @details
-#' The [key_antimicrobials()] and [all_antimicrobials()] functions are context-aware. This means that then the `x` argument can be left blank, see *Examples*.
+#' The [key_antimicrobials()] and [all_antimicrobials()] functions are context-aware. This means that the `x` argument can be left blank if used inside a [data.frame] call, see *Examples*.
#'
#' The function [key_antimicrobials()] returns a [character] vector with 12 antimicrobial results for every isolate. The function [all_antimicrobials()] returns a [character] vector with all antimicrobial results for every isolate. These vectors can then be compared using [antimicrobials_equal()], to check if two isolates have generally the same antibiogram. Missing and invalid values are replaced with a dot (`"."`) by [key_antimicrobials()] and ignored by [antimicrobials_equal()].
#'
diff --git a/R/mdro.R b/R/mdro.R
index 35a1c1b0..fb3d0a37 100755
--- a/R/mdro.R
+++ b/R/mdro.R
@@ -37,7 +37,7 @@
#' @param verbose a [logical] to turn Verbose mode on and off (default is off). In Verbose mode, the function does not return the MDRO results, but instead returns a data set in logbook form with extensive info about which isolates would be MDRO-positive, or why they are not.
#' @inheritSection eucast_rules Antibiotics
#' @details
-#' These functions are context-aware. This means that then the `x` argument can be left blank, see *Examples*.
+#' These functions are context-aware. This means that the `x` argument can be left blank if used inside a [data.frame] call, see *Examples*.
#'
#' For the `pct_required_classes` argument, values above 1 will be divided by 100. This is to support both fractions (`0.75` or `3/4`) and percentages (`75`).
#'
diff --git a/R/mo.R b/R/mo.R
index 4faab984..b741e238 100755
--- a/R/mo.R
+++ b/R/mo.R
@@ -469,7 +469,7 @@ exec_as.mo <- function(x,
x <- strip_whitespace(x, dyslexia_mode)
# translate 'unknown' names back to English
if (any(x %like% "unbekannt|onbekend|desconocid|sconosciut|iconnu|desconhecid", na.rm = TRUE)) {
- trns <- subset(translations_file, pattern %like% "unknown" | only_affect_mo_names == TRUE)
+ trns <- subset(translations_file, pattern %like% "unknown" | affect_mo_name == TRUE)
langs <- LANGUAGES_SUPPORTED[LANGUAGES_SUPPORTED != "en"]
for (l in langs) {
for (i in seq_len(nrow(trns))) {
diff --git a/data-raw/AMR_latest.tar.gz b/data-raw/AMR_latest.tar.gz
index 569e5818..6d9499d2 100644
Binary files a/data-raw/AMR_latest.tar.gz and b/data-raw/AMR_latest.tar.gz differ
diff --git a/docs/404.html b/docs/404.html
index d0fa7a71..d371cdb4 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -81,7 +81,7 @@
AMR (for R)
- 1.6.0.9042
+ 1.6.0.9043
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html
index aecda1e3..c2ea2125 100644
--- a/docs/LICENSE-text.html
+++ b/docs/LICENSE-text.html
@@ -81,7 +81,7 @@
AMR (for R)
- 1.6.0.9042
+ 1.6.0.9043
diff --git a/docs/articles/datasets.html b/docs/articles/datasets.html
index 078ef63a..35e34a1e 100644
--- a/docs/articles/datasets.html
+++ b/docs/articles/datasets.html
@@ -39,7 +39,7 @@
AMR (for R)
- 1.6.0.9042
+ 1.6.0.9043
diff --git a/docs/articles/index.html b/docs/articles/index.html
index 08a7eab3..3a879adf 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -81,7 +81,7 @@
AMR (for R)
- 1.6.0.9042
+ 1.6.0.9043
diff --git a/docs/authors.html b/docs/authors.html
index 5cfcf556..07d02cb0 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -81,7 +81,7 @@
AMR (for R)
- 1.6.0.9042
+ 1.6.0.9043
@@ -236,13 +236,14 @@
Source: inst/CITATION
-
Berends MS, Luz CF et al. (2021). AMR - An R Package for Working with Antimicrobial Resistance Data. bioRxiv, https://doi.org/10.1101/810622
+
Berends MS, Luz CF, Friedrich AW, Sinha BNM, Albers CJ, Glasner C (2021). AMR - An R Package for Working with
+Antimicrobial Resistance Data. Journal of Statistical Software (accepted for publication), https://www.biorxiv.org/content/10.1101/810622v4
@Article{,
title = {AMR - An R Package for Working with Antimicrobial Resistance Data},
author = {M S Berends and C F Luz and A W Friedrich and B N M Sinha and C J Albers and C Glasner},
doi = {1.24720276528394e-05},
- journal = {bioRxiv},
- publisher = {Cold Spring Harbor Laboratory},
+ journal = {Journal of Statistical Software},
+ pages = {Accepted for publication},
year = {2021},
url = {https://www.biorxiv.org/content/10.1101/810622v4},
}