-
Notifications
You must be signed in to change notification settings - Fork 129
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
Integrate colformat #294
Integrate colformat #294
Conversation
# ... with 4 more rows | ||
x y | ||
<dttm> <dttm> | ||
1 2016-01-01 12:34:57 2016-01-01 12:34:57 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hadley: How important is it that POSIXlt aren't shown in a tibble?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok to show them, but they should be consistently aligned with POSIXct, and they need a different type_sum()
@@ -1,10 +1,7 @@ | |||
# A tibble: 3 x 9 | |||
a b c d | |||
a b c d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hadley: Does the alignment of the column titles look right to you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the principle is to right align numbers and left align anything else. Currently logical is right aligned, but should probably be left aligned?
2 2.5 2 FALSE b b 2015-12-11 2015-12-09 10:51:36 <int [1]> <list [1]> | ||
3 NA NA NA <NA> <NA> NA NA <int [1]> <list [1]> | ||
a b c d e f g h i | ||
<dbl> <int> <lgl> <chr> <fctr> <date> <dttm> <list> <list> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hadley: Left-align list columns?
10 4.9 3.1 1.5 0.1 setosa | ||
# ... with 140 more rows | ||
<dbl> <dbl> <dbl> <dbl> <fctr> | ||
1 5.10 3.50 1.40 0.200 setosa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hadley: Left-align factors?
1 | ||
2 | ||
3 | ||
with 5 more variables: Sepal.Length <dbl>, Sepal.Width <dbl>, Petal.Length <dbl>, Petal.Width <dbl>, Species <fctr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to respect width
@@ -6,4 +6,3 @@ | |||
3 3 | |||
4 4 | |||
5 5 | |||
# ... with 9,995 more rows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the number of missing rows not shown?
@@ -5,4 +5,4 @@ | |||
3 3 | |||
4 4 | |||
5 5 | |||
# ... with more rows | |||
with at least 5 rows total |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What caused this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I bet this is an NA somewhere - that's the print behaviour for database tables where we don't know max
1 "\n" "\n" | ||
2 "\"" "\"" | ||
1 \n \n | ||
2 " " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hadley: Do we need to "
-quote strings with special characters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably a good idea
@@ -1,5 +1,5 @@ | |||
# A tibble: 3 x 2 | |||
成交日期 合同录入日期 | |||
成交日期 合同录入日期 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take care of wide characters in title.
@@ -1,3 +1,3 @@ | |||
# A tibble: 0 x 2 | |||
# ... with 2 variables: | |||
# a <chr>, b <lgl> | |||
a b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't show body for zero-row tibbles
7 2016-01-01 12:35:03 <POSIXlt> | ||
8 2016-01-01 12:35:04 <POSIXlt> | ||
x y | ||
<dttm> <ldttm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hadley: Does "lddtm" work for POSIXlt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost wonder if just "POSIXlt" would be best
1 5.1 | ||
2 4.9 | ||
3 4.7 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hadley: Do we need to care about very small output widths (here: 5 characters)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I think we're safe to assume a width of >20
3 NA NA NA <NA> | ||
1 1.00 1 * a | ||
2 2.50 2 - b | ||
3 NA NA ? ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this NA be right aligned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's right aligned on decimal. This is colformat issue.
@jimhester: Any idea why colformat is not installed on Travis even if it is in the |
Codecov Report
@@ Coverage Diff @@
## master #294 +/- ##
==========================================
- Coverage 90.41% 88.24% -2.17%
==========================================
Files 19 19
Lines 960 885 -75
==========================================
- Hits 868 781 -87
- Misses 92 104 +12
Continue to review full report at Codecov.
|
@jimhester: I suspect the reason was an invalid |
Closes #144. Closes #89.