From 4a54d59f7079a4c61ff293b919b644ad4555ff2b Mon Sep 17 00:00:00 2001 From: "Matthijs S. Berends" Date: Mon, 6 Feb 2023 14:36:31 +0100 Subject: [PATCH] tinytest --- DESCRIPTION | 2 +- NEWS.md | 2 +- tests/tinytest.R | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6253ac00..a668bfb7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: AMR -Version: 1.8.2.9108 +Version: 1.8.2.9109 Date: 2023-02-06 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) diff --git a/NEWS.md b/NEWS.md index e262d2f0..854c0a55 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 1.8.2.9108 +# AMR 1.8.2.9109 *(this beta version will eventually become v2.0! We're happy to reach a new major milestone soon!)* diff --git a/tests/tinytest.R b/tests/tinytest.R index 01ef1c7f..74a3ce07 100644 --- a/tests/tinytest.R +++ b/tests/tinytest.R @@ -39,6 +39,13 @@ if (tryCatch(isTRUE(AMR:::import_fn("isJob", "rstudioapi")()), error = function( .libPaths(c(Sys.getenv("R_LIBS_USER_GH_ACTIONS"), .libPaths())) if (AMR:::pkg_is_available("tinytest", also_load = TRUE)) { library(AMR) + if (identical(AMR:::import_fn("select", "dplyr"), AMR:::select)) { + print("This test will rely on {dplyr} verbs") + message("This test will rely on {dplyr} verbs") + } else { + print("This test will rely on {poorman} verbs") + message("This test will rely on {poorman} verbs") + } # set language set_AMR_locale("English") # set some functions if on old R