fix unit test

This commit is contained in:
dr. M.S. (Matthijs) Berends 2024-02-24 18:14:50 +01:00
parent 7be4dabbc0
commit 4aa5413641
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Package: AMR
Version: 2.1.1.9006
Version: 2.1.1.9007
Date: 2024-02-24
Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR)

View File

@ -1,4 +1,4 @@
# AMR 2.1.1.9006
# AMR 2.1.1.9007
*(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!)*

View File

@ -55,7 +55,6 @@ AMR_env$av_previously_coerced <- data.frame(
av = character(0),
stringsAsFactors = FALSE
)
AMR_env$host_preferred_order <- names(sort(table(AMR::clinical_breakpoints$host[!AMR::clinical_breakpoints$host %in% AMR::clinical_breakpoints$type]), decreasing = TRUE))
AMR_env$sir_interpretation_history <- data.frame(
datetime = Sys.time()[0],
index = integer(0),
@ -195,6 +194,8 @@ if (pkg_is_available("cli")) {
# they cannot be part of R/sysdata.rda since CRAN thinks it would make the package too large (+3 MB)
AMR_env$AB_lookup <- cbind(AMR::antibiotics, AB_LOOKUP)
AMR_env$AV_lookup <- cbind(AMR::antivirals, AV_LOOKUP)
AMR_env$host_preferred_order <- names(sort(table(AMR::clinical_breakpoints$host[!AMR::clinical_breakpoints$host %in% AMR::clinical_breakpoints$type]), decreasing = TRUE))
}
.onAttach <- function(lib, pkg) {