Skip to content

Adds optional column count display to print.data.table()#7791

Open
venom1204 wants to merge 8 commits into
masterfrom
issue6663
Open

Adds optional column count display to print.data.table()#7791
venom1204 wants to merge 8 commits into
masterfrom
issue6663

Conversation

@venom1204

Copy link
Copy Markdown
Contributor

closes #6663.
in this pr I

  • Added datatable.show.ncols option (default FALSE).
  • Added show.ncols support .
  • Added header output for total column count.
  • Integrated column count with trunc.cols=TRUE output.

hi @tdhock @joshhwuu can you please have a look when you get time.
thanks

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.85%. Comparing base (d65e46f) to head (43dddf2).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7791   +/-   ##
=======================================
  Coverage   98.85%   98.85%           
=======================================
  Files          87       87           
  Lines       17128    17139   +11     
=======================================
+ Hits        16932    16943   +11     
  Misses        196      196           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
  • HEAD=issue6663 much slower for transform improved in #5493
  • HEAD=issue6663 slower P<0.001 for DT[by] max regression fixed in #7480
  • HEAD=issue6663 faster P<0.001 for memrecycle regression fixed in #5463
  • HEAD=issue6663 faster P<0.001 for fwrite refactored in #6393
    Comparison Plot

Generated via commit 43dddf2

Download link for the artifact containing the test results: ↓ atime-results.zip

Task Duration
R setup and installing dependencies 2 minutes and 42 seconds
Installing different package versions 24 seconds
Running and plotting the test cases 5 minutes and 31 seconds

@venom1204 venom1204 requested review from joshhwuu and tdhock June 16, 2026 16:56

@tdhock tdhock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good, please add NEWS

Comment thread R/print.data.table.R Outdated
cons_width = getOption("width")
cols_to_print = widths < cons_width
not_printed = colnames(toprint)[!cols_to_print]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please remove empty lines

@venom1204 venom1204 requested a review from tdhock June 16, 2026 19:00
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

Successfully merging this pull request may close these issues.

Option to print the number of columns

2 participants