mirror of https://github.com/msberends/AMR.git
fixes
This commit is contained in:
parent
7c08418c0e
commit
f932f8279e
|
@ -1,5 +1,5 @@
|
|||
Package: AMR
|
||||
Version: 1.8.1.9065
|
||||
Version: 1.8.1.9066
|
||||
Date: 2022-09-23
|
||||
Title: Antimicrobial Resistance Data Analysis
|
||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||
|
|
2
NEWS.md
2
NEWS.md
|
@ -1,4 +1,4 @@
|
|||
# AMR 1.8.1.9065
|
||||
# AMR 1.8.1.9066
|
||||
|
||||
This version will eventually become v2.0! We're happy to reach a new major milestone soon!
|
||||
|
||||
|
|
|
@ -307,8 +307,6 @@ expect_equal(
|
|||
rep("UNKNOWN", 3)
|
||||
)
|
||||
|
||||
expect_null(mo_failures())
|
||||
|
||||
expect_error(translate_allow_uncertain(5))
|
||||
|
||||
# debug mode
|
||||
|
|
|
@ -38,11 +38,25 @@ if (identical(Sys.getenv("R_RUN_TINYTEST"), "true")) {
|
|||
set_AMR_locale("English")
|
||||
# get dir.exists(), trimws() and strrep() if on old R
|
||||
if (getRversion() < "3.2.0") {
|
||||
anyNA <- AMR:::anyNA
|
||||
dir.exists <- AMR:::dir.exists
|
||||
file.size <- AMR:::file.size
|
||||
file.mtime <- AMR:::file.mtime
|
||||
isNamespaceLoaded <- AMR:::isNamespaceLoaded
|
||||
lengths <- AMR:::lengths
|
||||
}
|
||||
if (getRversion() < "3.3.0") {
|
||||
trimws <- AMR:::trimws
|
||||
strrep <- AMR:::strrep
|
||||
trimws <- AMR:::trimws
|
||||
}
|
||||
if (getRversion() < "3.4.2") {
|
||||
isFALSE <- AMR:::isFALSE
|
||||
}
|
||||
if (getRversion() < "3.6.0") {
|
||||
str2lang <- AMR:::str2lang
|
||||
}
|
||||
if (getRversion() < "4.0.0") {
|
||||
deparse1 <- AMR:::deparse1
|
||||
}
|
||||
# start the unit tests
|
||||
out <- test_package("AMR",
|
||||
|
|
Loading…
Reference in New Issue