Extracts the list of cell style overrides applied via fr_styles().
Each element is an fr_cell_style object describing the target region,
rows, columns, and style properties (bold, fg, bg, etc.).
Arguments
- spec
An
fr_specobject fromfr_table()orfr_listing().
See also
fr_styles() to apply styles, fr_style(), fr_row_style(),
fr_col_style() for style constructors.
Examples
spec <- tbl_demog |> fr_table() |>
fr_styles(
fr_row_style(rows = 1L, bold = TRUE),
fr_col_style(cols = "total", bg = "#EBF5FB")
)
styles <- fr_get_styles(spec)
length(styles) # 2
#> [1] 2