Skip to content

Commit

Permalink
correction of a conflict between the argument auto.labs= and equation=.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyliannEngels committed Jun 6, 2024
1 parent 2bb567d commit 3420b41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/tabularise.glm.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ lang = getOption("data.io_lang", "en"), ..., kind = "ft", env = parent.frame())
if (!is.null(labs)) {
equa <- equation(data, swap_var_names = labs, ...)
} else {
equa <- equation(data, ...)
equa <- equation(data, auto.labs = FALSE,...)
}

ft <- .add_header(ft, data = data, info_lang = info_lang, header = header,
Expand Down Expand Up @@ -251,7 +251,7 @@ env = parent.frame()) {
if (!is.null(labs)) {
equa <- equation(data, swap_var_names = labs, ...)
} else {
equa <- equation(data, ...)
equa <- equation(data, auto.labs = FALSE, ...)
}

ft <- .add_header(ft, data = data, info_lang = info_lang, header = header,
Expand Down Expand Up @@ -370,7 +370,7 @@ tabularise_glance.glm <- function(data, header = TRUE, title = NULL,
if (!is.null(labs)) {
equa <- equation(data, swap_var_names = labs, ...)
} else {
equa <- equation(data, ...)
equa <- equation(data, auto.labs = FALSE, ...)
}

ft <- .add_header(ft, data = data, info_lang = info_lang, header = header,
Expand Down
6 changes: 3 additions & 3 deletions R/tabularise.lm.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ tabularise_coef.lm <- function(data, header = TRUE, title = NULL,
if (!is.null(labs)) {
equa <- equation(data, swap_var_names = labs, ...)
} else {
equa <- equation(data, ...)
equa <- equation(data, auto.labs = FALSE, ...)
}

ft <- .add_header(ft, data = data, info_lang = info_lang, header = header,
Expand Down Expand Up @@ -224,7 +224,7 @@ tabularise_tidy.lm <- function(data, header = TRUE, title = NULL,
if (!is.null(labs)) {
equa <- equation(data, swap_var_names = labs, ...)
} else {
equa <- equation(data, ...)
equa <- equation(data, auto.labs = FALSE, ...)
}

ft <- .add_header(ft, data = data, info_lang = info_lang, header = header,
Expand Down Expand Up @@ -339,7 +339,7 @@ tabularise_glance.lm <- function(data, header = TRUE, title = NULL,
if (!is.null(labs)) {
equa <- equation(data, swap_var_names = labs, ...)
} else {
equa <- equation(data, ...)
equa <- equation(data, auto.labs = FALSE, ...)
}

ft <- .add_header(ft, data = data, info_lang = info_lang, header = header,
Expand Down

0 comments on commit 3420b41

Please sign in to comment.