(v3.0.0.9027) skimr update and as.ab warning - fixes #234, fixes #232

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2025-09-10 13:32:52 +02:00
1 parent d5a568318b
commit 4d7c4ca52c
13 files changed
+92 -58

No files matched your search

+8
View File
@@ -96,6 +96,14 @@ test_that("test-ab.R", {
rep("GEH", 8)
)
# skimr
if (AMR:::pkg_is_available("skimr", min_version = "2.0.0", also_load = TRUE)) {
expect_named(
skim(clinical_breakpoints$ab),
c("skim_type", "skim_variable", "n_missing", "complete_rate", "ab.n_unique", "ab.top_ab", "ab.top_ab_name", "ab.top_group")
)
}
# assigning and subsetting
x <- AMR::antimicrobials$ab
expect_inherits(x[1], "ab")