Learn R Programming

CVXR (version 1.9.1)

format_labeled: Pretty-print an expression with labels substituted

Description

Recursive analogue of expr_name() that substitutes user-supplied labels (see set_label()) for sub-expressions wherever they are set, falling back to the structural name on unlabelled nodes. Mirrors CVXPY's Expression.format_labeled.

Usage

format_labeled(x)

Value

A character string.

Arguments

x

An Expression object.

See Also

set_label(), label()