tibble 1.4.1
New formatting
The new pillar package is now responsible for formatting tibbles. Pillar will try to display as many columns as possible, if necessary truncating or shortening the output. Colored output highlights important information and guides the eye. The vignette in the tibble package describes how to adapt custom data types for optimal display in a tibble.
New features
- Make
add_case()
an alias foradd_row()
(#324, @LaDilettante). as_tibble()
gainsrownames
argument (#288, #289).as_tibble.matrix()
repairs column names.- Tibbles now support character subsetting (#312).
`[.tbl_df`()
supportsdrop = TRUE
and omits the warning ifj
is passed. The callsdf[i, j, drop = TRUE]
anddf[i, drop = TRUE]
are now compatible with data frames again (#307, #311).
Bug fixes
- Improved compatibility with remote data sources for
glimpse()
(#328). - Logical indexes are supported, a warning is raised if the length does not match the number of rows or 1 (#318).
- Fixed width for word wrapping of the extra information (#301).
- Prevent
add_column()
from dropping classes and attributes by removing the use ofcbind()
. Additionally this ensures thatadd_column()
can be used with grouped data frames (#303, @DavisVaughan). add_column()
to an empty zero-row tibble with a variable of nonzero length now produces a correct error message (#319).