pretty_print_helper: Pretty print helper for messaging named vectors

View source: R/setup.R

pretty_print_helperR Documentation

Pretty print helper for messaging named vectors

Description

R's built-in warning() and message() functions eat named vectors. Thus, to be able to output the print.default() version of a named vector to theconsole, it's necessary to use a pretty print helper like this one.

Usage

pretty_print_helper(named_vector)

Arguments

named_vector

A named numeric vector

Value

A character vector to be used with message() or warning(), consisting of a column aligned table of names and values mimmicking the print.default() behaviour for named vectors.


aaronrudkin/autumn documentation built on Feb. 5, 2024, 6:08 p.m.