Skip to content

Commit

Permalink
Merge pull request #485 from r-lib/f-deprecate
Browse files Browse the repository at this point in the history
- `colonnade()` is soft-deprecated (#485).
  • Loading branch information
krlmlr authored Jan 31, 2022
2 parents 8745786 + 391bcd6 commit d3a7599
Show file tree
Hide file tree
Showing 10 changed files with 325 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/multi.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#' # If width is larger than getOption("width"), multiple tiers are created:
#' colonnade(rep(long_string, 4), width = Inf)
colonnade <- function(x, has_row_id = TRUE, width = NULL, ...) {
deprecate_soft("1.6.6", "pillar::colonnade()", "pillar::tbl_format_setup()")

if (!missing(...)) {
check_dots_empty(action = warn)
}
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/_snaps/ansi/format_multi.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@

Code
colonnade(list(a_very_long_column_name = 0), width = 15)
Warning <lifecycle_warning_deprecated>
`colonnade()` was deprecated in pillar 1.6.6.
Please use `tbl_format_setup()` instead.
Output
a_very_long_~
<dbl>
Expand Down
Loading

0 comments on commit d3a7599

Please sign in to comment.