Debian Codegraph @

man/tbl_format_body.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/tbl-format-body.R
3 \name{tbl_format_body}
4 \alias{tbl_format_body}
5 \title{Format the body of a tibble}
6 \usage{
7 tbl_format_body(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_body()} method is responsible for formatting the body
25 of a tibble.
26
27 Override this method if you need to change the appearance of all parts
28 of the body.
29 If you only need to change the appearance of a single data type,
30 override \code{\link[vctrs:vec_ptype_full]{vctrs::vec_ptype_abbr()}} and \code{\link[=pillar_shaft]{pillar_shaft()}} for this data type.
31 }
32 \examples{
33 \dontshow{if (rlang::is_installed(c("palmerpenguins", "tibble"))) withAutoprint(\{ # examplesIf}
34 setup <- tbl_format_setup(palmerpenguins::penguins)
35 tbl_format_body(palmerpenguins::penguins, setup)
36
37 # Shortcut for debugging
38 tbl_format_body(setup)
39 \dontshow{\}) # examplesIf}
40 }