tree_label: Build element or node label in tree

View source: R/tree.R

tree_labelR Documentation

Build element or node label in tree

Description

These methods control how the value of a given node is printed. New methods can be added if support is needed for a novel class

Usage

tree_label(x, opts)

Arguments

x

A tree like object (list, etc.)

opts

A list of options that directly mirrors the named arguments of tree. E.g. list(val_printer = crayon::red) is equivalent to tree(..., val_printer = crayon::red).


hadley/lobstr documentation built on Nov. 4, 2023, 3:19 a.m.