Debian Codegraph @

man/tbl_format_header.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/tbl-format-header.R
3 \name{tbl_format_header}
4 \alias{tbl_format_header}
5 \title{Format the header of a tibble}
6 \usage{
7 tbl_format_header(x, setup, ...)
8 }
9 \arguments{
10 \item{x}{A tibble-like object.}
11
12 \item{setup}{A setup object returned from \code{\link[=tbl_format_setup]{tbl_format_setup()}}.}
13
14 \item{...}{These dots are for future extensions and must be empty.}
15 }
16 \value{
17 A character vector.
18 }
19 \description{
20 \ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#experimental}{\figure{lifecycle-experimental.svg}{options: alt='[Experimental]'}}}{\strong{[Experimental]}}
21
22 For easier customization, the formatting of a tibble is split
23 into three components: header, body, and footer.
24 The \code{tbl_format_header()} method is responsible for formatting the header
25 of a tibble.
26
27 Override this method if you need to change the appearance
28 of the entire header.
29 If you only need to change or extend the components shown in the header,
30 override or extend \code{\link[=tbl_sum]{tbl_sum()}} for your class which is called by the
31 default method.
32 }
33 \examples{
34 \dontshow{if (rlang::is_installed(c("palmerpenguins", "tibble"))) withAutoprint(\{ # examplesIf}
35 setup <- tbl_format_setup(palmerpenguins::penguins)
36 tbl_format_header(palmerpenguins::penguins, setup)
37
38 # Shortcut for debugging
39 tbl_format_header(setup)
40 \dontshow{\}) # examplesIf}
41 }