From f23983791aa50c599dec99cd19a41a0e566a2dd6 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Sun, 12 May 2024 12:52:17 +0200 Subject: [PATCH] skip on oldrel --- .github/workflows/lint-changed-files.yaml | 3 +-- tests/testthat/test-meta-random-bayes.R | 1 + tests/testthat/test-one-two-sample-dataframes.R | 2 ++ tests/testthat/test-oneway-anova-bayes.R | 7 ++----- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint-changed-files.yaml b/.github/workflows/lint-changed-files.yaml index f464a84d..1a860c26 100644 --- a/.github/workflows/lint-changed-files.yaml +++ b/.github/workflows/lint-changed-files.yaml @@ -57,8 +57,7 @@ jobs: undesirable_function_linter = NULL, undesirable_operator_linter = NULL, unnecessary_concatenation_linter(allow_single_expression = FALSE), - unused_import_linter = NULL, - defaults = linters_with_tags(tags = NULL) + unused_import_linter = NULL ), exclusions = exclusions_list) shell: Rscript {0} env: diff --git a/tests/testthat/test-meta-random-bayes.R b/tests/testthat/test-meta-random-bayes.R index 385f09ed..5ac1e3f8 100644 --- a/tests/testthat/test-meta-random-bayes.R +++ b/tests/testthat/test-meta-random-bayes.R @@ -2,6 +2,7 @@ test_that( desc = "meta_analysis works - bayesian", code = { skip_if_not_installed("metaBMA") + skip_if_not(getRversion() >= "4.4.0") set.seed(123) df <- meta_analysis( diff --git a/tests/testthat/test-one-two-sample-dataframes.R b/tests/testthat/test-one-two-sample-dataframes.R index fdc13107..351d8208 100644 --- a/tests/testthat/test-one-two-sample-dataframes.R +++ b/tests/testthat/test-one-two-sample-dataframes.R @@ -1,6 +1,8 @@ test_that( desc = " parametric t-tests", code = { + skip_if_not(getRversion() >= "4.4.0") + # one-sample t-test (with NAs) --------- set.seed(123) diff --git a/tests/testthat/test-oneway-anova-bayes.R b/tests/testthat/test-oneway-anova-bayes.R index 8ebd7f25..8fb5bc80 100644 --- a/tests/testthat/test-oneway-anova-bayes.R +++ b/tests/testthat/test-oneway-anova-bayes.R @@ -1,10 +1,7 @@ # don't test data frames because the values vary across platforms, even with the -# same seed -# -# for the same reason, don't change number of digits - -# to print all tibble columns in the snapshot; don't remove +# same seed; for the same reason, don't change number of digits +skip_if_not(getRversion() >= "4.4.0") # between-subjects ------------------------------