Skip to content

Commit 1580a22

Browse files
authored
Change how unspecified ... arguments are passed to other functions (#443)
* Change how unspecified `...` arguments are passed to other functions Fixes #442 * news
1 parent d26b750 commit 1580a22

4 files changed

+8
-3
lines changed

NEWS.md

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Minor changes
1515
* `report` now supports reporting of BayesFactor objects with variables of class `BFBayesFactor`.
1616
* `report_sample()` now suggests valid column names for misspelled columns in the `select`, `by`, `weights` and `exclude` arguments.
1717

18+
Bug fixes
19+
20+
* Fixed issues with incorrectly passing additional arguments to downstream
21+
functions in `report()` for `htest` objects.
22+
1823
# report 0.5.8
1924

2025
New features

R/report_htest_chi2.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
estimate <- names(table)[1]
1818
rules <- ifelse(is.null(dot_args$rules), rules, dot_args$rules)
1919

20-
args <- list(table, rules = rules, dot_args)
20+
args <- c(list(table, rules = rules), dot_args)
2121
interpretation <- do.call(effectsize::interpret, args)$Interpretation
2222
rules <- .text_effectsize(attr(attr(interpretation, "rules"), "rule_name"))
2323
} else {

R/report_htest_fisher.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
estimate <- names(table)[1]
1616
rules <- ifelse(is.null(dot_args$rules), rules, dot_args$rules)
1717

18-
args <- list(table, rules = rules, dot_args)
18+
args <- c(list(table, rules = rules), dot_args)
1919
interpretation <- do.call(effectsize::interpret, args)$Interpretation
2020
rules <- .text_effectsize(attr(attr(interpretation, "rules"), "rule_name"))
2121

R/report_htest_ttest.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
estimate <- names(table)[1]
5151
rules <- ifelse(is.null(dot_args$rules), rules, dot_args$rules)
5252

53-
my_args <- list(table, rules = rules, dot_args)
53+
my_args <- c(list(table, rules = rules), dot_args)
5454
interpretation <- do.call(effectsize::interpret, my_args)$Interpretation
5555
rules <- .text_effectsize(attr(attr(interpretation, "rules"), "rule_name"))
5656

0 commit comments

Comments
 (0)