obj_print: 'print()' and 'str()' generics.

View source: R/print-str.R

obj_printR Documentation

print() and str() generics.

Description

These are constructed to be more easily extensible since you can override the ⁠_header()⁠, ⁠_data()⁠ or ⁠_footer()⁠ components individually. The default methods are built on top of format().

Usage

obj_print(x, ...)

obj_print_header(x, ...)

obj_print_data(x, ...)

obj_print_footer(x, ...)

obj_str(x, ...)

obj_str_header(x, ...)

obj_str_data(x, ...)

obj_str_footer(x, ...)

Arguments

x

A vector

...

Additional arguments passed on to methods. See print() and str() for commonly used options


vctrs documentation built on May 29, 2024, 11:39 a.m.