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

print.tbl_df() fixup #51

Merged
merged 37 commits into from
Jun 13, 2016
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
44d9cf9
omit dots if length known
Mar 18, 2016
92a7191
show number of missing rows in last line
Mar 19, 2016
ead7eca
omit source information and dimensions for data frame sources
Mar 19, 2016
ade1107
update README
Mar 19, 2016
3dea6e5
test output if number of rows unknown
Mar 19, 2016
68f726b
add test output
Mar 19, 2016
c928632
always print number of rows if zero-row or zero-col data frame
Mar 19, 2016
3f4f968
rename, test corner case
Mar 19, 2016
23e1860
new-style output
May 5, 2016
3c60db9
split print(), also return output invisibly
May 5, 2016
606e1f0
support n_extra = 0
May 5, 2016
40c032c
remove unused dim_desc()
May 5, 2016
179e3b1
update README
May 5, 2016
e5e62ca
more variables after colon, not in parentheses
May 5, 2016
390196f
format_extra_...() instead of print_extra_...()
May 5, 2016
e10ba05
extract format_extra()
May 5, 2016
880533d
knit_print() uses same extra formatting logic as trunc_mat()
May 5, 2016
22fa833
formatting
May 5, 2016
3dd4c87
separate concerns, simplify
May 5, 2016
f469b20
extra on one line, if possible
May 5, 2016
c858418
special case: zero rows
May 5, 2016
51f5693
update README
May 7, 2016
46bd4c8
use non-breaking space to keep name and type together
May 7, 2016
1477a2d
Merge branch 'master' into feature/19-remove-ellipsis
May 7, 2016
e965547
Merge remote-tracking branch 'origin/master' into feature/19-remove-e…
May 17, 2016
262424a
move code
May 17, 2016
b35106c
new unknown_rows helper class
May 17, 2016
127cb99
add desired output
May 17, 2016
1e9afc1
use question marks instead of NA for unknown dims
May 17, 2016
c66545a
don't print rows for empty data frames
May 17, 2016
396863f
use obj_sum() to print one-line summary
May 17, 2016
eaaa0e8
update README
May 17, 2016
c1e71be
explicitly register S3 methods used only in tests
May 17, 2016
fee06df
tibble instead of tbl_df in output
Jun 12, 2016
e019d2f
show big marks in size_sum()
Jun 13, 2016
a8454a9
update README
Jun 13, 2016
f4321f4
include summary in knitr output
Jun 13, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ flights
#> 8 2013 1 1 557 600 -3 709
#> 9 2013 1 1 557 600 -3 838
#> 10 2013 1 1 558 600 -2 753
#> ... with 336,766 more rows
#> ... and 12 more variables (sched_arr_time <int>, arr_delay <dbl>, carrier
#> <chr>, flight <int>, tailnum <chr>, origin <chr>, dest <chr>, air_time
#> <dbl>, distance <dbl>, hour <dbl>, minute <dbl>, time_hour <time>)
#> ... with 336,766 more rows, and 12 more variables: sched_arr_time <int>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to update README before, this is the only change: Now extra rows and extra columns are shown in the same line. Not sure what's better.

#> arr_delay <dbl>, carrier <chr>, flight <int>, tailnum <chr>, origin
#> <chr>, dest <chr>, air_time <dbl>, distance <dbl>, hour <dbl>, minute
#> <dbl>, time_hour <time>
```

Tibbles are strict about subsetting. If you try to access a variable that does not exist, you'll get an error:
Expand Down