Learn R Programming

teal (version 1.2.1)

format_decorator_entries: Render decorator entries as tree nodes

Description

Renders global decorator labels and object-specific decorator groups as sibling entries under a common prefix. Reuses format_tree_leaves() for rendering children within object groups.

Usage

format_decorator_entries(decorators_info, prefix)

Value

(character(1)) Formatted string with tree connectors

Arguments

decorators_info

(list) with global (character vector) and objects (named list) components, as returned by format_decorators_tree()

prefix

(character(1)) Prefix for each line