unit test fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2024-05-20 18:58:35 +02:00
1 parent 08a27922a8
commit fc269e667d
7 files changed
+17 -12

No files matched your search

+1 -1
View File
@@ -327,7 +327,7 @@ is_sir_eligible <- function(x, threshold = 0.05) {
# extra param: warn (logical, to never throw a warning)
as.sir.default <- function(x, S = "^(S|U)+$", I = "^(I|H)+$", R = "^(R)+$", N = "^(N|V)+$", SDD = "^(SDD|D)+$", ...) {
if (inherits(x, "sir")) {
return(x)
return(as_sir_structure(x))
}
x.bak <- x