Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve repr_text for tbl_df/data.table #72

Open
jankatins opened this issue Jun 20, 2016 · 1 comment
Open

improve repr_text for tbl_df/data.table #72

jankatins opened this issue Jun 20, 2016 · 1 comment

Comments

@jankatins
Copy link
Contributor

jankatins commented Jun 20, 2016

print.tbl_df() is optimized for "informative" output and currently we don't use it but coerce to an old fashioned data.frame in https://github.com/IRkernel/repr/blob/master/R/repr_matrix_df.r#L222

I like that we make the normal data.frame output more useable by including the ellipsis stuff, but IMO for tbl_df we are making it worse :-(

IMO we should also use the normal print.data.table stuff as that also shortens the df to 100 rows.

[
I'm currently using

repr_html.tbl_df <- function(obj, ...) NULL
repr_latex.tbl_df <- function(obj, ...) NULL
repr_text.tbl_df <- repr:::repr_text.default

to get useful output for my JSON stuff... :-(
]

@flying-sheep flying-sheep changed the title repr_text for tbl_df/data.table should use normal print(obj) output instead of ellipsis stuff improve repr_text for tbl_df/data.table Apr 7, 2017
@flying-sheep
Copy link
Member

plain text is a step back though, so maybe we should just specifically support them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants