Skip to content

Commit

Permalink
styler
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 18, 2024
1 parent 80b7e3a commit 2b24120
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion R/rescale_weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ rescale_weights <- function(data,

if (!all(by %in% colnames(data_tmp))) {
dont_exist <- by[which(!by %in% colnames(data_tmp))]
insight::format_error(paste0(
insight::format_error(
paste0(
"The following variable(s) specified in `by` don't exist in the dataset: ",
text_concatenate(dont_exist), "."
),
Expand Down
11 changes: 5 additions & 6 deletions R/select_nse.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,11 @@

# small helper, to avoid duplicated code
.action_if_not_found <- function(
x,
columns,
matches,
verbose,
ifnotfound
) {
x,
columns,
matches,
verbose,
ifnotfound) {
msg <- paste0(
"Following variable(s) were not found: ",
toString(x[is.na(matches)])
Expand Down

0 comments on commit 2b24120

Please sign in to comment.