Learn R Programming

teal (version 1.2.1)

format_tree_leaves: Render labels as tree leaf nodes

Description

Takes a character vector of labels and renders them as tree leaves with proper |- / L- connectors.

Usage

format_tree_leaves(labels, prefix)

Value

(character(1)) Formatted string with tree connectors

Arguments

labels

(character) Labels to render as leaf nodes

prefix

(character(1)) Prefix for each line (indentation and pipe characters)