From a14fcb991dca06b468c6bf4dab6f1117b001f1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 15 Dec 2024 10:57:39 +0100 Subject: [PATCH] chore!: Hard-deprecate ellipsis for printing and formatting (#637) * Use error argument for check_dots_empty() * Avoid passing dots * Hard fail after check_dots_empty() * revdep results * Results * Start with warning * Slightly better * Another try * Good enough --- R/tbl-format.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tbl-format.R b/R/tbl-format.R index 08bfe8d31..3816f72af 100644 --- a/R/tbl-format.R +++ b/R/tbl-format.R @@ -52,7 +52,7 @@ format_tbl <- function( max_footer_lines = NULL, transform = identity ) { - check_dots_empty(action = signal) + check_dots_empty(error = function(cnd) warn("`...` must be empty in `format.tbl()`", parent = cnd)) if (!is.null(n_extra)) { deprecate_stop("1.6.2", "pillar::format(n_extra = )", "pillar::format(max_extra_cols = )")