print.xpose_data: Print an xpose_data object

print.xpose_dataR Documentation

Print an xpose_data object

Description

[Experimental]

Bugfix for xpose:::print.xpose_data. That function's ⁠Options:⁠ summary line builds names(x$options) and unlist(x$options) separately and assumes they come out the same length – true only as long as every entry of xpdb$options is itself a single value. Any entry that's a multi-element list (eg default_labs/ default_watermark once more than one key is set) unlists into more elements than there are names, and stringr::str_c()'s vectorized recycling then errors – so printing (or auto-printing) the xpdb fails outright rather than just rendering oddly. This collapses each option's value to a single string first, so the name/value pairing always stays 1:1.

Everything else is an unmodified duplicate of the upstream function.

Usage

## S3 method for class 'xpose_data'
print(x, ...)

Arguments

x

An xpose_data object.

...

Passed on to further methods (currently unused upstream too).

Examples

xpdb_x %>%
  set_default_labs(title = "t", caption = "c") %>%
  print()


xpose.xtras documentation built on Sept. 1, 2026, 5:08 p.m.