obj_sum()
uses vctrs::vec_size()
internally.
is_vector_s3.default()
is soft-deprecated and no longer used. Please ensure that vctrs::vec_is()
is TRUE
for your class.
Rely on vctrs for type abbreviations.
new_pillar_shaft_simple()
gains na
argument to control appearance of NA
values.
String columns are quoted if at least one value needs quotes (#171).
Apply subtle style to list_of
columns (#172).
Fix formatting if mantissa is very close to 1 (#174).
Use as.character()
instead of as_character()
.
Remove compatibility with testthat < 2.0.0.
List columns are shown with their perceived dimensions, which may be different from those stored in the "dim"
attribute. Regression introduced in 1.4.0 (#167).
Add ellipsis to vec_ptype_abbr()
method.
type_sum.vctrs_vctr()
that also led to a NOTE in R CMD check
.vec_is()
at runtime instead of during .onLoad()
(#163, @lionel-).type_sum()
forwards to vctrs::vec_ptype_abbr()
(#134). This makes sure that list_of
columns (for values of the same type) are properly displayed. The value returned for factor
and complex
remains unchanged, because this will change in vctrs.class
argument to new_pillar_shaft()
deprecates the existing subclass
argument. Passing a subclass
argument leads to a warning once per session (#157).[,0]
and an empty shaft (#149).squeeze()
is now faster (because the width computation in pillar_shaft.numeric()
now uses more arithmetics instead of string concatenation). Further speedups may require implemetation of crucial parts in C (#147).colonnade()
, and styling is implemented manually (#133, @jimhester).pillar_
prefix (#156).NA
in names is no longer escaped with backticks.format()
method (tidyverse/tibble#448).Unknown data types are formatted using format()
, not as.character()
(#120).
Multi-tier colonnades can always fill the last tier, even if the width isn't a proper multiple of getOption("width")
. (Example: options(width = 80, tibble.width = 200)
will print a wide tibble in three tiers, each 80 characters wide, with a total width of 240 characters.)
Fixed mixed formatting (showing some pillars with maximum, and some with minimum width). If a pillar's minimum width is smaller than getOption("width")
, it is shown nevertheless, abbreviated with dots if necessary.
format_type_sum()
gains width
argument (#73).Printing large multi-tier colonnades is much faster, the code that distributes pillars over tiers uses a much simpler and much faster algorithm (tidyverse/tibble#422).
Printing is now faster overall, because less work is done for formatting in "subtle" style (gray of a fixed level), and because fansi::strip_sgr()
is used instead of crayon::strip_style()
.
Slightly faster printing of colonnades by reusing an intermediate result.
pillar()
no longer adds backticks if title
is non-syntactic.
colonnade()
supports data frames and matrices. When printing, each sub-column is shown individually, using a title that resembles the syntax used to access it. Also supports recursively nested data frames (with data frame or matrix columns).
Added fuzz tests for character colonnades of varying widths.
Use fansi::substr_ctl()
in favor of crayon::col_substr()
.
colonnade()
now handles pillars named "sep"
(#115).pillar_shaft.character()
gains min_width
argument.pillar.sigfig
option (#105).new_pillar_title()
and new_pillar_type()
to support consistent output in glimpse()
(#31).format_type_sum()
generic that allows overriding the formatting of the type summary in the capital (#73).digits.secs
option is respected when computing the width for date-time values (#102).pillar.subtle_num
to TRUE
to turn it on again (default: FALSE
).TRUE
and FALSE
again (#95).numeric
. Trailing zeros are not shown anymore if all displayed numbers are whole numbers (#62)."class"
attribute (e.g., Duration
from lubridate) are now formatted using format()
if the pillar_shaft()
method is not implemented for that class (#88).1e-310
) are now printed corectly (tidyverse/tibble#377).getOption("pillar.sigfig") >= 6
(tidyverse/tibble#380).style_subtle_num()
, formatting depends on the pillar.subtle_num
option.NA
values are now shown in plain red, without changing the background color (#70).pillar.sigfig
to control the number of significant digits, for highlighting and truncation (#72),pillar.subtle
to specify if insignificant digits should be printed in gray (#72),pillar.neg
to specify if negative digits should be printed in red,pillar.bold
to specify if column headers should be printed in bold (default: FALSE
, #76),pillar.min_title_chars
to specify the minimum number of characters to display for each column name (default: 15 characters, #75).digits.secs
option is set (#74).Initial release.
pillar(x, title = NULL, width = NULL, ...)
colonnade(x, has_row_id = TRUE, width = NULL, ...)
squeeze(x, width = NULL, ...)
new_pillar_shaft_simple(formatted, ..., width = NULL, align = "left", min_width = NULL, na_indent = 0L)
new_pillar_shaft(x, ..., width, min_width = width, subclass)
new_ornament(x, width = NULL, align = NULL)
get_extent(x)
get_max_extent(x)
dim_desc(x)
style_na(x)
style_neg(x)
style_num(x, negative, significant = rep_along(x, TRUE))
style_subtle(x)
expect_known_display(object, file, ..., width = 80L, crayon = TRUE)
pillar_shaft(x, ...) # AsIs, Date, POSIXt, character, default, list, logical, numeric
type_sum(x) # AsIs, Date, POSIXct, data.frame, default, difftime, factor, ordered
is_vector_s3(x) # Date, POSIXct, data.frame, default, difftime, factor, ordered
obj_sum(x) # AsIs, POSIXlt, default, list
extra_cols(x, ...) # squeezed_colonnade
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.