Skip to content

Commit

Permalink
Change how unspecified ... arguments are passed to other functions
Browse files Browse the repository at this point in the history
Fixes #442
  • Loading branch information
strengejacke committed Jun 27, 2024
1 parent d26b750 commit 344dd88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/report_htest_chi2.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
estimate <- names(table)[1]
rules <- ifelse(is.null(dot_args$rules), rules, dot_args$rules)

args <- list(table, rules = rules, dot_args)
args <- c(list(table, rules = rules), dot_args)
interpretation <- do.call(effectsize::interpret, args)$Interpretation
rules <- .text_effectsize(attr(attr(interpretation, "rules"), "rule_name"))
} else {
Expand Down
2 changes: 1 addition & 1 deletion R/report_htest_fisher.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
estimate <- names(table)[1]
rules <- ifelse(is.null(dot_args$rules), rules, dot_args$rules)

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

Expand Down
2 changes: 1 addition & 1 deletion R/report_htest_ttest.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
estimate <- names(table)[1]
rules <- ifelse(is.null(dot_args$rules), rules, dot_args$rules)

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

Expand Down

0 comments on commit 344dd88

Please sign in to comment.