bold: Make cell text bold or italic

View source: R/properties-cell.R

boldR Documentation

Make cell text bold or italic

Description

Make cell text bold or italic

Usage

bold(ht)

bold(ht) <- value

set_bold(ht, row, col, value = TRUE)

map_bold(ht, row, col, fn)

italic(ht)

italic(ht) <- value

set_italic(ht, row, col, value = TRUE)

map_italic(ht, row, col, fn)

Arguments

ht

A huxtable.

value

A logical vector or matrix. Set to NA to reset to the default, which is FALSE.

row

A row specifier. See rowspecs for details.

col

An optional column specifier.

fn

A mapping function. See mapping-functions for details.

See Also

Other formatting functions: background_color(), font(), font_size(), na_string(), number_format(), text_color()

Examples

bold(jams) <- TRUE
bold(jams)

set_bold(jams, FALSE)
set_bold(
  jams,
  2:3, 1, FALSE
)
map_bold(
  jams,
  by_rows(FALSE, TRUE)
)


huxtable documentation built on Aug. 19, 2025, 1:12 a.m.