Skip to content

[Experimental]

For easier customization, the formatting of a tibble is split into three components: header, body, and footer. The tbl_format_footer() method is responsible for formatting the footer of a tibble.

Override or extend this method if you need to change the appearance of the footer. The default implementation adds information about rows and columns that are not shown in the body.

Usage

tbl_format_footer(x, setup, ...)

Arguments

x

A tibble-like object.

setup

A setup object returned from tbl_format_setup().

...

These dots are for future extensions and must be empty.

Value

A character vector.

Examples

setup <- tbl_format_setup(palmerpenguins::penguins)
tbl_format_footer(palmerpenguins::penguins, setup)
#> [1] "\033[38;5;246m# … with 334 more rows, and abbreviated variable names ¹​bill_depth_mm,\033[39m"
#> [2] "\033[38;5;246m#   ²​flipper_length_mm, ³​body_mass_g\033[39m"                                  

# Shortcut for debugging
tbl_format_footer(setup)
#> <tbl_format_footer(setup)>
#> # … with 334 more rows, and abbreviated variable names ¹​bill_depth_mm,
#> #   ²​flipper_length_mm, ³​body_mass_g