Skip to content

Commit

Permalink
remove unnecessary skips
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed May 11, 2024
1 parent eefe438 commit a30c800
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/testthat/test-binned_residuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ test_that("binned_residuals, bootstrapped CI", {

test_that("binned_residuals, msg for non-bernoulli", {
skip_on_cran()
skip_if(packageVersion("insight") < "0.19.7")
tot <- rep(10, 100)
suc <- rbinom(100, prob = 0.9, size = tot)

Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-check_collinearity.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ test_that("check_collinearity, hurdle/zi models w/o zi-formula", {
})

test_that("check_collinearity, invalid data", {
skip_if(packageVersion("insight") < "0.19.8.2")
dd <- data.frame(y = as.difftime(0:5, units = "days"))
m1 <- lm(y ~ 1, data = dd)
expect_error(check_collinearity(m1), "Can't extract variance-covariance matrix")
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-check_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ test_that("`check_outliers()` works if convergence issues", {
})

test_that("`check_model()` for invalid models", {
skip_if(packageVersion("insight") < "0.19.8.2")
dd <- data.frame(y = as.difftime(0:5, units = "days"))
m1 <- lm(y ~ 1, data = dd)
expect_error(check_model(m1))
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-check_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ test_that("check_predictions, glmmTMB", {


test_that("check_predictions, glm, binomial", {
skip_if(packageVersion("insight") <= "0.19.6")
data(mtcars)
set.seed(1)
tot <- rep(10, 100)
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-nestedLogit.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
skip_on_os(c("mac", "linux"))
skip_if(packageVersion("insight") <= "0.19.5.10")
skip_if_not_installed("nestedLogit")
skip_if_not_installed("carData")

Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-pkg-ivreg.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
test_that("Issue #530 from the `modelsummary` repo", {
skip_if_not_installed("ivreg")
skip_if_not(packageVersion("insight") >= "0.19.1.3") # formatting of results
# for ivreg diagnostics
data(mtcars)
iv_model <- suppressMessages(ivreg::ivreg(mpg ~ qsec + cyl + drat | disp | wt, data = mtcars))
Expand Down

0 comments on commit a30c800

Please sign in to comment.