with the following goals:
Something like:
- We implement
print() by forwarding to format()
format.tbl_df() calls format_head(), format_body() and format_extra(), default implementations are provided for tibbles
- we cannot rely on
format.data.frame() because it returns a data frame and not a character vector
dplyr needs to implement only format_head() for grouped data frames, and can append its information to the result of NextMethod()
The current implementation is inflexible because it relies on format.data.frame(). Therefore, this issue is mostly about replacing format.data.frame() with our own implementation.
We should release just before the dplyr release. I'll be closing a few related issues with a reference to this new issue.
@hadley: Could you please comment?
with the following goals:
format()format()andprint(): full support for Unicode everywhereglimpse(): full support for Unicode everywhereSomething like:
print()by forwarding toformat()format.tbl_df()callsformat_head(),format_body()andformat_extra(), default implementations are provided for tibblesformat.data.frame()because it returns a data frame and not a character vectordplyrneeds to implement onlyformat_head()for grouped data frames, and can append its information to the result ofNextMethod()The current implementation is inflexible because it relies on
format.data.frame(). Therefore, this issue is mostly about replacingformat.data.frame()with our own implementation.We should release just before the dplyr release. I'll be closing a few related issues with a reference to this new issue.
@hadley: Could you please comment?