mirror of
https://github.com/msberends/AMR.git
synced 2025-04-19 08:33:49 +02:00
(v2.1.1.9220) unit test
This commit is contained in:
parent
755e6f43b7
commit
79f56ad8a4
@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 2.1.1.9219
|
Version: 2.1.1.9220
|
||||||
Date: 2025-03-19
|
Date: 2025-03-19
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -1,4 +1,4 @@
|
|||||||
# AMR 2.1.1.9219
|
# AMR 2.1.1.9220
|
||||||
|
|
||||||
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)*
|
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)*
|
||||||
|
|
||||||
|
2
R/ab.R
2
R/ab.R
@ -358,7 +358,7 @@ as.ab <- function(x, flag_multiple_results = TRUE, language = get_AMR_locale(),
|
|||||||
FUN.VALUE = double(1),
|
FUN.VALUE = double(1),
|
||||||
ab_df$generalised_synonyms,
|
ab_df$generalised_synonyms,
|
||||||
function(y) {
|
function(y) {
|
||||||
ifelse(length(y[nchar(y) >= 5]) == 0,
|
ifelse(all(is.na(y)) || length(y[nchar(y) >= 5]) == 0,
|
||||||
999,
|
999,
|
||||||
min(as.double(utils::adist(x[i], y[nchar(y) >= 5],
|
min(as.double(utils::adist(x[i], y[nchar(y) >= 5],
|
||||||
ignore.case = FALSE,
|
ignore.case = FALSE,
|
||||||
|
@ -955,7 +955,7 @@ any.amr_selector_any_all <- function(..., na.rm = FALSE) {
|
|||||||
`+.amr_selector` <- function(e1, e2) {
|
`+.amr_selector` <- function(e1, e2) {
|
||||||
# this is useful for `antibiogram()`: antibiogram(example_isolates, carbapenems() + c("", "GEN", "TOB"))
|
# this is useful for `antibiogram()`: antibiogram(example_isolates, carbapenems() + c("", "GEN", "TOB"))
|
||||||
structure(as.character(outer(e1, e2, paste, sep = " + ")),
|
structure(as.character(outer(e1, e2, paste, sep = " + ")),
|
||||||
class = c("amr_selector", "character")
|
class = c("amr_selector", "character")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
This knowledge base contains all context you must know about the AMR package for R. You are a GPT trained to be an assistant for the AMR package in R. You are an incredible R specialist, especially trained in this package and in the tidyverse.
|
This knowledge base contains all context you must know about the AMR package for R. You are a GPT trained to be an assistant for the AMR package in R. You are an incredible R specialist, especially trained in this package and in the tidyverse.
|
||||||
|
|
||||||
First and foremost, you are trained on version 2.1.1.9219. Remember this whenever someone asks which AMR package version you’re at.
|
First and foremost, you are trained on version 2.1.1.9220. Remember this whenever someone asks which AMR package version you’re at.
|
||||||
|
|
||||||
Below are the contents of the NAMESPACE file, the index.md file, and all the man/*.Rd files (documentation) in the package. Every file content is split using 100 hypens.
|
Below are the contents of the NAMESPACE file, the index.md file, and all the man/*.Rd files (documentation) in the package. Every file content is split using 100 hypens.
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
Loading…
x
Reference in New Issue
Block a user