clin_table_align: Set how a table sits across the page

View source: R/col_width.R

clin_table_alignR Documentation

Set how a table sits across the page

Description

flextable centres a table on the page. Regulatory outputs are usually flush left, and a narrow table sometimes wants to be centred deliberately. The choice is recorded on the clintable and applied when the table renders, after the default styling function has run, so it holds even when an organisation's own clinify_table_default() rebuilds the table properties.

Usage

clin_table_align(x, align)

Arguments

x

A clintable object

align

One of "left", "center", or "right"

Details

This is only about where the table sits across the page. How wide it is, and how that width is divided between the columns, is clin_col_widths().

Value

A clintable object

Examples

clintable(mtcars) |>
  clin_table_align("left")

clinify documentation built on Aug. 2, 2026, 1:06 a.m.