From 392d2bf917429ab81acabe3f1e248dde2e36a7f3 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Mon, 3 Feb 2025 12:56:44 -0800 Subject: [PATCH] Fix stale message --- R/assignment_linter.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/assignment_linter.R b/R/assignment_linter.R index 1f3e5275a..0f10717dc 100644 --- a/R/assignment_linter.R +++ b/R/assignment_linter.R @@ -161,7 +161,7 @@ assignment_linter <- function(operator = c("<-", "<<-"), op_lint_message_fmt[op_text %in% c("<<-", "->>")] <- "Replace %s by assigning to a specific environment (with assign() or <-) to avoid hard-to-predict behavior." op_lint_message_fmt[op_text == "%<>%"] <- - "Avoid the assignment pipe %s; prefer using <- and %%>%% separately." + "Avoid the assignment pipe %s; prefer pipes and assignment in separate steps." op_lint_message <- sprintf(op_lint_message_fmt, op_text) lints <- xml_nodes_to_lints(op_expr, source_expression, op_lint_message, type = "style")