From 453c159eac657e408575872be6cc11a16814bd15 Mon Sep 17 00:00:00 2001 From: "Matthijs S. Berends" Date: Sun, 23 Jun 2019 14:49:17 +0200 Subject: [PATCH] 0.7.1 --- DESCRIPTION | 4 ++-- NEWS.md | 2 +- R/mo.R | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index bf92bb60..e17fb1a1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: AMR -Version: 0.7.0.9015 -Date: 2019-06-22 +Version: 0.7.1 +Date: 2019-06-23 Title: Antimicrobial Resistance Analysis Authors@R: c( person( diff --git a/NEWS.md b/NEWS.md index d0bcf818..86cee7fc 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 0.7.0.9015 +# AMR 0.7.1 #### New * Function `rsi_df()` to transform a `data.frame` to a data set containing only the microbial interpretation (S, I, R), the antibiotic, the percentage of S/I/R and the number of available isolates. This is a convenient combination of the existing functions `count_df()` and `portion_df()` to immediately show resistance percentages and number of available isolates: diff --git a/R/mo.R b/R/mo.R index d521638b..dd6ee2f3 100755 --- a/R/mo.R +++ b/R/mo.R @@ -1217,11 +1217,11 @@ exec_as.mo <- function(x, if (NROW(uncertainties) > 0 & initial_search == TRUE) { options(mo_uncertainties = as.list(distinct(uncertainties, input, .keep_all = TRUE))) - plural <- c("value", "it") + plural <- c("", "it") if (NROW(uncertainties) > 1) { - plural <- c("values", "them") + plural <- c("s", "them") } - msg <- paste0("\nResults of ", nr2char(NROW(uncertainties)), " ", plural[1], + msg <- paste0("\nResult", plural[1], " of ", nr2char(NROW(uncertainties)), " value", plural[1], " was guessed with uncertainty. Use mo_uncertainties() to review ", plural[2], ".") warning(red(msg), call. = FALSE,