Skip to content

Commit

Permalink
Fix tests for insight update
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Dec 2, 2024
1 parent 9d8b9d9 commit d8fa8ae
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.6.9
uses: JamesIves/github-pages-deploy-action@v4.7.1
with:
branch: gh-pages
folder: docs
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ references:
orcid: https://orcid.org/0000-0002-9271-5075
year: '2024'
doi: 10.32614/CRAN.package.insight
version: '>= 0.20.5'
version: '>= 1.0.0'
- type: software
title: magrittr
abstract: 'magrittr: A Forward-Pipe Operator for R'
Expand Down Expand Up @@ -397,7 +397,7 @@ references:
orcid: https://orcid.org/0000-0001-9560-6336
year: '2024'
doi: 10.32614/CRAN.package.parameters
version: '>= 0.23.0'
version: '>= 0.24.0'
- type: software
title: performance
abstract: 'performance: Assessment of Regression Models Performance'
Expand Down
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ URL: https://indrajeetpatil.github.io/statsExpressions/,
https://github.com/IndrajeetPatil/statsExpressions
BugReports: https://github.com/IndrajeetPatil/statsExpressions/issues
Depends:
R (>= 4.1.0),
R (>= 4.3.0),
stats
Imports:
afex (>= 1.4-1),
Expand All @@ -31,9 +31,9 @@ Imports:
dplyr (>= 1.1.4),
effectsize (>= 0.8.9),
glue (>= 1.8.0),
insight (>= 0.20.5),
insight (>= 1.0.0),
magrittr (>= 2.0.3),
parameters (>= 0.23.0),
parameters (>= 0.24.0),
performance (>= 0.12.4),
PMCMRplus (>= 1.9.12),
purrr (>= 1.0.2),
Expand Down
6 changes: 3 additions & 3 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
"@type": "SoftwareApplication",
"identifier": "insight",
"name": "insight",
"version": ">= 0.20.5",
"version": ">= 1.0.0",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand All @@ -311,7 +311,7 @@
"@type": "SoftwareApplication",
"identifier": "parameters",
"name": "parameters",
"version": ">= 0.23.0",
"version": ">= 0.24.0",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -439,7 +439,7 @@
},
"SystemRequirements": null
},
"fileSize": "4229.33KB",
"fileSize": "4229KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
26 changes: 15 additions & 11 deletions man/tidy_model_parameters.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 14 additions & 9 deletions tests/testthat/_snaps/tidy-model-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,17 @@
Code
select(df_chi, -expression)
Output
# A tibble: 2 x 10
term estimate std.error conf.level conf.low conf.high statistic df.error
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 age 0.0170 0.00923 0.95 -0.00106 0.0351 3.40 1
2 sex -0.512 0.168 0.95 -0.840 -0.183 9.31 1
p.value conf.method
<dbl> <chr>
1 0.0650 Wald
2 0.00228 Wald
# A tibble: 3 x 10
term estimate std.error conf.level conf.low conf.high statistic
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 age 0.0170 0.00923 0.95 -0.00106 0.0351 3.40
2 sex -0.512 0.168 0.95 -0.840 -0.183 9.31
3 frailty(inst) NA NA 0.95 NA NA 0.0000605
df.error p.value conf.method
<dbl> <dbl> <chr>
1 1 0.0650 Wald
2 1 0.00228 Wald
3 1 0.994 Wald

---

Expand All @@ -83,6 +85,9 @@
list(widehat(italic(beta)) == "-0.51", italic(chi)^2 * ("1") ==
"9.31", italic(p) == "2.28e-03")
[[3]]
NULL

# tidy_model_expressions works - z

Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-pairwise-comparisons.R
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ test_that(
)



# within-subjects design - no NAs -----------------------------------------

test_that(
Expand Down

0 comments on commit d8fa8ae

Please sign in to comment.