-
Notifications
You must be signed in to change notification settings - Fork 985
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 zero-column data.frame properly #3363
Conversation
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.
Before submitting PR it is best to discuss expected behaviour. There is existing issue that covers the case of non-zero rows and zero columns: #2422 please put your comment there.
Sorry I didn't check and mention that discussion. But still I don't think it matters because this PR just fixes the printing functionality for the existing That being said, I would be happy to put my comment on that discussion. |
I added a test and changed the NEWS item to reflect what's really going on here :
Please note that |
Codecov Report
@@ Coverage Diff @@
## master #3363 +/- ##
=========================================
Coverage ? 94.74%
=========================================
Files ? 65
Lines ? 12152
Branches ? 0
=========================================
Hits ? 11513
Misses ? 639
Partials ? 0
Continue to review full report at Codecov.
|
The attribute
$row.names
is preserved in zero-columnbase::data.frame
, while not indata.table
. I won't go deeply into this feature difference here, but just want to fix printing function.Created on 2019-02-06 by the reprex package (v0.2.1)