From 8b234d5add718c05126df9cbf0ed006dd935e316 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 23 Nov 2023 15:16:18 +0100 Subject: [PATCH] styler --- R/check_collinearity.R | 4 ++-- tests/testthat/test-r2.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 )