block_list_items: List of items for Word and PowerPoint

View source: R/ooxml_block_objects.R

block_list_itemsR Documentation

List of items for Word and PowerPoint

Description

Create a bullet or numbered list from list_item() elements. Supports rich text via fpar() and multi-level nesting. Works in both Word and PowerPoint documents.

Usage

block_list_items(..., list_type = "bullet")

Arguments

...

list_item() objects

list_type

"bullet" for an unordered list or "decimal" for a numbered list

See Also

list_item(), body_add(), ph_with()

Other block functions for reporting: block_caption(), block_gg(), block_list(), block_pour_docx(), block_section(), block_table(), block_toc(), fpar(), list_item(), plot_instr(), unordered_list()

Examples

items <- block_list_items(
  list_item(fpar(
    ftext("Item 1", fp_text(color = "red"))
  ), level = 1),
  list_item(fpar("Sub-item"), level = 2),
  list_item(fpar("Item 2"), level = 1),
  list_type = "bullet"
)
items

officer documentation built on April 24, 2026, 5:06 p.m.