diff --git a/R/check_collinearity.R b/R/check_collinearity.R index 703b25f2c..2add49126 100644 --- a/R/check_collinearity.R +++ b/R/check_collinearity.R @@ -443,8 +443,8 @@ check_collinearity.zerocount <- function(x, # hurdle or zeroinfl model can have no zero-inflation formula, in which case # we have the same formula as for conditional formula part if (inherits(x, c("hurdle", "zeroinfl", "zerocount")) && - component == "zero_inflated" && - is.null(f[["zero_inflated"]])) { + component == "zero_inflated" && + is.null(f[["zero_inflated"]])) { f$zero_inflated <- f$conditional } diff --git a/tests/testthat/test-r2.R b/tests/testthat/test-r2.R index be9724a13..d287604a1 100644 --- a/tests/testthat/test-r2.R +++ b/tests/testthat/test-r2.R @@ -83,7 +83,7 @@ withr::with_environment( data(bioChemists, package = "pscl") m <- glmmTMB::glmmTMB( art ~ fem + mar + kid5 + ment, - ziformula = ~kid5 + phd, + ziformula = ~ kid5 + phd, family = poisson(), data = bioChemists )