Skip to content

Commit

Permalink
revise wording
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 29, 2024
1 parent d1dafff commit 5c9d3f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@
if (verbose && !all(colnames(x) == make.names(colnames(x), unique = TRUE))) {
insight::format_alert(
"Bad column names (e.g., with spaces) have been detected which might create issues in many functions.",
"Please fix it (you can run `names(mydata) <- make.names(names(mydata))` or use `janitor::clean_names()` for a quick fix).", # nolint
paste0(
"We recommend to rename following columns: ",
text_concatenate(
colnames(x)[colnames(x) != make.names(colnames(x), unique = TRUE)],
enclose = "`"
)
),
"You can run `names(mydata) <- make.names(names(mydata))` or use `janitor::clean_names()` for a quick fix.", # nolint
type = action
)
}
Expand Down

0 comments on commit 5c9d3f7

Please sign in to comment.