Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 22, 2024
1 parent b403c52 commit 119c4a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-r2_mcfadden.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ test_that("r2_mcfadden, glmmTMB-beta-binomial", {
newdata = dd,
newparams = list(beta = c(0,1), betadisp = -1),

Check warning on line 38 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=38,col=33,[commas_linter] Put a space after a comma.
weights = rep(10, nrow(dd)),
family = "betabinomial"
family = glmmTMB::betabinomial()
)[[1]]
dd$success <- round(runif(nrow(dd), 0, dd$y))

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

Check warning on line 45 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=45,col=6,[infix_spaces_linter] Put spaces around all infix operators.
data = dd,
weights = rep(10, nrow(dd)),
family = "betabinomial"
family = glmmTMB::betabinomial()
)
out1 <- r2(m)
out2 <- r2_mcfadden(m)
Expand All @@ -56,7 +56,7 @@ test_that("r2_mcfadden, glmmTMB-beta-binomial", {
cbind(y, success) ~ 1 + x,
data = dd,
weights = rep(10, nrow(dd)),
family = "betabinomial"
family = glmmTMB::betabinomial()
)
expect_warning(r2(m), regex = "calculate accurate")
expect_warning(r2_mcfadden(m), regex = "calculate accurate")
Expand Down

0 comments on commit 119c4a2

Please sign in to comment.