Skip to contents

Prints a header with the specified level (H1, H2, or H3) using cli.

Usage

ospPrintHeader(text, level = 1)

Arguments

text

The text to print as a header

level

The header level (1, 2, or 3)

Value

Invisibly returns NULL

See also

Other print functions: ospPrintClass(), ospPrintItems()

Examples

# Print different header levels
ospPrintHeader("Main Title", 1)
#> 
#> ── Main Title ──────────────────────────────────────────────────────────────────
ospPrintHeader("Section Title", 2)
#> 
#> ── Section Title ──
#> 
ospPrintHeader("Subsection Title", 3)
#> ── Subsection Title