unit tests

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-01-24 16:09:48 +01:00
1 parent 7b00b4f34a
commit c0d8888ab7
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
Package: AMR Package: AMR
Version: 1.8.2.9101 Version: 1.8.2.9102
Date: 2023-01-24 Date: 2023-01-24
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)
+1 -1
View File
@@ -1,4 +1,4 @@
# AMR 1.8.2.9101 # AMR 1.8.2.9102
*(this beta version will eventually become v2.0! We're happy to reach a new major milestone soon!)* *(this beta version will eventually become v2.0! We're happy to reach a new major milestone soon!)*
+1 -1
View File
@@ -54,7 +54,7 @@ expect_identical(suppressWarnings(rsi_df(example_isolates)),
expect_identical(suppressWarnings(is.rsi.eligible(example_isolates)), expect_identical(suppressWarnings(is.rsi.eligible(example_isolates)),
suppressWarnings(is_sir_eligible(example_isolates))) suppressWarnings(is_sir_eligible(example_isolates)))
if (pkg_is_available("ggplot2", also_load = FALSE)) { if (AMR:::pkg_is_available("ggplot2", also_load = FALSE)) {
expect_identical(suppressWarnings(ggplot_rsi(example_isolates[, c("CIP", "GEN", "TOB")])), expect_identical(suppressWarnings(ggplot_rsi(example_isolates[, c("CIP", "GEN", "TOB")])),
suppressWarnings(ggplot_sir(example_isolates[, c("CIP", "GEN", "TOB")]))) suppressWarnings(ggplot_sir(example_isolates[, c("CIP", "GEN", "TOB")])))