Learn R Programming

tibblify (version 0.3.1)

formatting: Printing tibblify specifications

Description

Printing tibblify specifications

Usage

# S3 method for tspec
print(x, width = NULL, ..., names = NULL)

# S3 method for tspec_df format(x, width = NULL, ..., names = NULL)

Value

x is returned invisibly.

Arguments

x

Spec to format or print

width

Width of text output to generate.

...

These dots are for future extensions and must be empty.

names

Should names be printed even if they can be deduced from the spec?

Examples

Run this code
spec <- tspec_df(
  a = tib_int("a"),
  new_name = tib_chr("b"),
  row = tib_row(
    "row",
    x = tib_int("x")
  )
)
print(spec, names = FALSE)
print(spec, names = TRUE)

Run the code above in your browser using DataLab