Skip to content

Fix col.names="none" suppressing all output when row.names=FALSE #7804

Open
venom1204 wants to merge 4 commits into
masterfrom
issue773355
Open

Fix col.names="none" suppressing all output when row.names=FALSE #7804
venom1204 wants to merge 4 commits into
masterfrom
issue773355

Conversation

@venom1204

@venom1204 venom1204 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

closes #7735

the PR fixes a bug where setting col.names="none" combined with row.names=FALSE resulted in zero output.

Before:
col.names="none" + row.names=FALSE resulted in blank output because the internal regex required row markers (e.g., 1:) to identify lines to keep.

After:
When row names are suppressed, the header is now dropped by position instead of pattern, ensuring data rows print correctly.

d = data.table(a = 1:2)
print(d, col.names = "none", row.names = FALSE)
#  1
#  2

@codecov

codecov Bot commented Jun 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.01%. Comparing base (fc60d3c) to head (56acefc).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7804   +/-   ##
=======================================
  Coverage   99.01%   99.01%           
=======================================
  Files          88       88           
  Lines       17219    17226    +7     
=======================================
+ Hits        17050    17057    +7     
  Misses        169      169           

☔ 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.

@venom1204 venom1204 requested review from joshhwuu and tdhock June 28, 2026 19:39
@github-actions

github-actions Bot commented Jun 28, 2026

Copy link
Copy Markdown
  • HEAD=issue773355 faster P<0.001 for memrecycle regression fixed in #5463
    Comparison Plot

Generated via commit 56acefc

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

Task Duration
R setup and installing dependencies 2 minutes and 44 seconds
Installing different package versions 47 seconds
Running and plotting the test cases 5 minutes and 38 seconds

@tdhock

tdhock commented Jun 29, 2026

Copy link
Copy Markdown
Member

thanks.
please add NEWs item, and add PR comment which explains behavior before/after this PR?

@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.

please revise

@venom1204

Copy link
Copy Markdown
Contributor Author

thanks. please add NEWs item, and add PR comment which explains behavior before/after this PR?

hi i just updated the pr description and added the news entry

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

print col.names="none" suppresses print completely

2 participants