Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPrint zero-column data.frame properly #3363
Conversation
|
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.namesis 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)