| formatting | R Documentation |
The print() and format() methods for tibblify specifications provide the
code necessary to generate the specification. Function names are color-coded
to help visually distinguish different types of collectors.
## S3 method for class 'tib_collector'
print(x, width = NULL, ..., names = NULL)
## S3 method for class 'tib_scalar'
format(
x,
...,
.fill = NULL,
.ptype_inner = NULL,
.transform = NULL,
multi_line = FALSE,
nchar_indent = 0,
width = NULL,
names = FALSE
)
## S3 method for class 'tib_variant'
format(x, ..., multi_line = FALSE, nchar_indent = 0, width = NULL)
## S3 method for class 'tib_vector'
format(x, ..., multi_line = FALSE, nchar_indent = 0, width = NULL)
## S3 method for class 'tib_unspecified'
format(
x,
...,
.fill = NULL,
.ptype_inner = NULL,
.transform = NULL,
multi_line = FALSE,
nchar_indent = 0,
width = NULL,
names = FALSE
)
## S3 method for class 'tib_scalar_chr_date'
format(x, ..., multi_line = FALSE, nchar_indent = 0, width = NULL)
## S3 method for class 'tib_vector_chr_date'
format(x, ..., multi_line = FALSE, nchar_indent = 0, width = NULL)
## S3 method for class 'tib_row'
format(x, ..., width = NULL, names = NULL)
## S3 method for class 'tib_df'
format(x, ..., width = NULL, names = NULL)
## S3 method for class 'tib_recursive'
format(x, ..., width = NULL, names = NULL)
## S3 method for class 'tibblify_object'
print(x, ...)
## S3 method for class 'tspec'
print(x, width = NULL, ..., names = NULL)
## S3 method for class 'tspec_df'
format(x, width = NULL, ..., names = NULL)
## S3 method for class 'tspec_row'
format(x, width = NULL, ..., names = NULL)
## S3 method for class 'tspec_recursive'
format(x, width = NULL, ..., names = NULL)
## S3 method for class 'tspec_object'
format(x, width = NULL, ..., names = NULL)
x |
( |
width |
( |
... |
These dots are for future extensions and must be empty. |
names |
( |
.fill |
( |
.ptype_inner |
( |
.transform |
( |
multi_line |
( |
nchar_indent |
( |
For print() methods, x is returned invisibly. format() methods
return a length-1 character vector.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.