Skip to content

Commit

Permalink
issue #667
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Mar 7, 2024
1 parent 7a97f21 commit 2499b55
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/sanity_checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,6 @@ sanity_tidy <- function(tidy_output, tidy_custom, estimate, statistic, modelclas

sanity_ds_data <- function(formula, data, internal_call = FALSE) {
checkmate::assert_data_frame(data)
# labelled data does not play well with All()
is_labelled <- any(sapply(data, inherits, "haven_labelled"))
is_all <- any(grepl("^All\\(", as.character(formula)))
if (is_all && is_labelled && !isTRUE(internal_call)) {
msg <- format_msg(
"It is not safe to use labelled data with the `All()` command in a datasummary()` formula.")
warn_once(msg, id = "datasummary_all_labelled")
}
}


Expand Down

0 comments on commit 2499b55

Please sign in to comment.