Skip to content

Commit

Permalink
minor print issue
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 14, 2024
1 parent e1ebe0e commit 7f47c28
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: sjstats
Type: Package
Encoding: UTF-8
Title: Collection of Convenient Functions for Common Statistical Computations
Version: 0.19.0
Version: 0.19.0.1
Authors@R: person("Daniel", "Lüdecke", role = c("aut", "cre"), email = "d.luedecke@uke.de", comment = c(ORCID = "0000-0002-8895-3206"))
Maintainer: Daniel Lüdecke <d.luedecke@uke.de>
Description: Collection of convenient functions for common statistical computations,
Expand Down
2 changes: 1 addition & 1 deletion R/chi_squared_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ print.sj_htest_chi <- function(x, ...) {

# headline
insight::print_color(sprintf(
"\n# Chi-squared test for %s%s\n",
"# Chi-squared test for %s%s\n",
attributes(x)$caption,
weight_string
), "blue")
Expand Down
5 changes: 0 additions & 5 deletions tests/testthat/_snaps/chi_squared_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Code
print(out1)
Output
# Chi-squared test for contingency tables
Data: c161sex by e16sex (n = 900)
Expand All @@ -16,7 +15,6 @@
Code
print(out)
Output
# Chi-squared test for contingency tables (weighted)
Data: c161sex by e16sex (n = 904)
Expand All @@ -29,7 +27,6 @@
Code
print(out1)
Output
# Chi-squared test for given probabilities
Data: c161sex against probabilities 30% and 70% (n = 901)
Expand All @@ -42,7 +39,6 @@
Code
print(out)
Output
# Chi-squared test for given probabilities (weighted)
Data: c161sex against probabilities 30% and 70% (n = 906)
Expand All @@ -55,7 +51,6 @@
Code
print(out1)
Output
# Chi-squared test for contingency tables
(using McNemar's test for paired data)
Expand Down

0 comments on commit 7f47c28

Please sign in to comment.