Skip to content

.report_effectsize_ttest called without proper table #459

Description

@fkohrt

Describe the bug

Within report_effectsize.htest(), .report_effectsize_ttest() is called by passing a table object – except there is no such object in the scope of report_effectsize.htest(), making it refer to base::table().

To Reproduce

report/R/report.htest.R

Lines 40 to 54 in 69e8c5f

report_effectsize.htest <- function(x, ...) {
dot_args <- list(...)
model_info <- dot_args$model_info
if (is.null(model_info)) {
model_info <- suppressWarnings(insight::model_info(x, verbose = FALSE))
}
# remove arg, so dots can be passed to effectsize
dot_args[["model_info"]] <- NULL
# For t-tests ----------------
if (model_info$is_ttest) {
out <- .report_effectsize_ttest(x, table, dot_args)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions