From c4b5fd14d24ebe9d4b6cb46b6c454cf6f17d88e8 Mon Sep 17 00:00:00 2001 From: Jonathon Love Date: Wed, 18 Oct 2023 18:24:51 +1100 Subject: [PATCH] Version 2.4.11 --- DESCRIPTION | 4 ++-- jamovi/0000.yaml | 3 +-- tests/testthat/testttestps.R | 13 ++++++++++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index eb8ca9a9..ba06aa9b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: jmv Type: Package Title: The 'jamovi' Analyses -Version: 2.4.9 -Date: 2023-10-04 +Version: 2.4.11 +Date: 2023-10-12 Authors@R: c(person("Ravi", "Selker", role=c("aut", "cph")), person("Jonathon", "Love", role=c("aut", "cre", "cph"), email="jon@thon.cc"), person("Damian", "Dropmann", role=c("aut", "cph")), diff --git a/jamovi/0000.yaml b/jamovi/0000.yaml index f5f9870a..ba719c43 100644 --- a/jamovi/0000.yaml +++ b/jamovi/0000.yaml @@ -1,7 +1,7 @@ --- title: Analyses bundled with jamovi name: jmv -version: 2.4.9 +version: 2.4.11 jms: '1.0' authors: - Jonathon Love @@ -10,7 +10,6 @@ authors: - Victor Moreno - Maurizio Agosti maintainer: Jonathon Love -date: '2023-10-04' description: > This module represents the analyses included with jamovi. It contains many common analyses (such as t-tests, ANOVAs, regression, correlation matrices, diff --git a/tests/testthat/testttestps.R b/tests/testthat/testttestps.R index b9ea262c..793a9ffb 100644 --- a/tests/testthat/testttestps.R +++ b/tests/testthat/testttestps.R @@ -48,7 +48,18 @@ testthat::test_that('All options in the ttestPS work (sunny)', { testthat::expect_equal(c(0, 0), ttestTable[['err[bf]']], tolerance = 1e-3) testthat::expect_equal(c(3468, 1261), ttestTable[['stat[wilc]']], tolerance = 1e-3) testthat::expect_equal(c(0.001, 0), ttestTable[['p[wilc]']], tolerance = 1e-3) - testthat::expect_equal(c(0.356, -8.945), ttestTable[['md[wilc]']], tolerance = 1e-3) + + # CRAN complained as follows ... apparently only an issue on older versions of macOS? + # ... anyway, you'll see i've set the tolerance really high to accommodate it + # + # ══ Failed tests ════════════════════════════════════════════════════════════════ + # ── Failure ('testttestps.R:51:5'): All options in the ttestPS work (sunny) ───── + # c(0.356, -8.945) not equal to ttestTable[["md[wilc]"]]. + # 1/2 mismatches + # [2] -8.95 - -8.93 == -0.0158 + + testthat::expect_equal(c(0.356, -8.945), ttestTable[['md[wilc]']], tolerance = 0.02) + testthat::expect_equal(c(0.105, 1.843), ttestTable[['sed[wilc]']], tolerance = 1e-3) testthat::expect_equal(c(0.145, -12.849), ttestTable[['cil[wilc]']], tolerance = 1e-3) testthat::expect_equal(c(0.561, -4.998), ttestTable[['ciu[wilc]']], tolerance = 1e-3)