Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 24, 2024
1 parent 012a113 commit 926d2bc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/testthat/test-r2_mcfadden.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ withr::with_environment(
family = glmmTMB::betabinomial()
)[[1]]
dd$success <- round(runif(nrow(dd), 0, dd$y))
d <<- dd

m <- glmmTMB::glmmTMB(
y/10 ~ 1 + x,

Check warning on line 50 in tests/testthat/test-r2_mcfadden.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=tests/testthat/test-r2_mcfadden.R,line=50,col=10,[infix_spaces_linter] Put spaces around all infix operators.
data = dd,
weights = rep(10, nrow(dd)),
data = d,
weights = rep(10, nrow(d)),
family = glmmTMB::betabinomial()
)
out1 <- r2(m)
Expand All @@ -58,8 +59,8 @@ withr::with_environment(

m <- glmmTMB::glmmTMB(
cbind(y, success) ~ 1 + x,
data = dd,
weights = rep(10, nrow(dd)),
data = d,
weights = rep(10, nrow(d)),
family = glmmTMB::betabinomial()
)
expect_warning(r2(m), regex = "calculate accurate")
Expand Down

0 comments on commit 926d2bc

Please sign in to comment.