Learn R Programming

writexl (version 2.0.0)

xl_rich_run: One run of a rich (multi-format) string

Description

`xl_rich_run()` is one fragment of an [xl_rich_string()]: a piece of text plus the font it is drawn in.

Usage

xl_rich_run(value, format = NULL)

Value

An `xl_rich_run` object.

Arguments

value

A single non-`NA`, non-empty string: the run's text.

format

An optional [xl_format]. Only its **font** properties apply (see [xl_font()]); a run has no fill, border, alignment or number format, and supplying one warns. `NULL` draws the run in the cell's own font.

See Also

[xl_rich_string], [xl_format]

Other cell content: is_xl_comment(), xl_cell_general(), xl_comment(), xl_formula(), xl_rich_string()

Examples

Run this code
xl_rich_run("bold", xl_font(bold = TRUE))
xl_rich_run("plain")

Run the code above in your browser using DataLab