Skip to content

Commit

Permalink
Version 2.4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathon-love committed Oct 18, 2023
1 parent f081878 commit c4b5fd1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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")),
Expand Down
3 changes: 1 addition & 2 deletions jamovi/0000.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,7 +10,6 @@ authors:
- Victor Moreno
- Maurizio Agosti
maintainer: Jonathon Love <jon@thon.cc>
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,
Expand Down
13 changes: 12 additions & 1 deletion tests/testthat/testttestps.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c4b5fd1

Please sign in to comment.