Skip to content

Commit

Permalink
skip if boot not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 1, 2024
1 parent 054aa42 commit 3446979
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-htest_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ test_that("basic examples", {
skip_on_os("linux")
}

skip_if_not_installed("boot")

# t.test
x <- t.test(mpg ~ vs, data = mtcars)
expect_warning(effectsize(x), "Unable to retrieve data")
Expand Down Expand Up @@ -36,6 +38,8 @@ test_that("basic examples", {
})

test_that("edge cases", {
skip_if_not_installed("boot")

# Example 1
tt1 <- t.test(mpg ~ I(am + cyl == 4), data = mtcars)
dd1 <- cohens_d(mpg ~ I(am + cyl == 4), data = mtcars, pooled_sd = FALSE)
Expand Down

0 comments on commit 3446979

Please sign in to comment.