Skip to content

Commit

Permalink
Added two checks for noSuggests test.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzwanenburg committed Sep 21, 2024
1 parent 7a6c41d commit 5d7218c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-stratification.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ testthat::skip_on_cran()
# Find available stratification methods.
stratification_methods <- familiar:::.get_available_stratification_methods()

if (!test_data_package_installed("survival")) testthat::skip()
if (!familiar::test_data_package_installed("survival")) testthat::skip()
if (!rlang::is_installed("power.transform")) testthat::skip()

# Test for good dataset.
for (stratification_method in stratification_methods) {
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-transformation.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if (!rlang::is_installed("power.transform")) testthat::skip()

# Generic test -----------------------------------------------------------------
outcome_type <- "survival"

Expand Down

0 comments on commit 5d7218c

Please sign in to comment.