Skip to content

Conversation

@ben-schwen
Copy link
Member

Closes #3459

@codecov
Copy link

codecov bot commented Dec 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.96%. Comparing base (ddaeb4c) to head (4197bec).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7493      +/-   ##
==========================================
- Coverage   98.97%   98.96%   -0.01%     
==========================================
  Files          87       87              
  Lines       16741    16757      +16     
==========================================
+ Hits        16569    16584      +15     
- Misses        172      173       +1     

☔ View full report in Codecov by Sentry.
📢 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
Copy link

github-actions bot commented Dec 21, 2025

  • HEAD=fread_colnames_drop stopped early for DT[by,verbose=TRUE] improved in #6296
    Comparison Plot

Generated via commit 4197bec

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

Task Duration
R setup and installing dependencies 2 minutes and 58 seconds
Installing different package versions 43 seconds
Running and plotting the test cases 5 minutes and 6 seconds

# drop works with user override colnames #3459
DT = data.table(a=c(1L, 4L), c=c(3L, 6L))
test(2352.1, fread("a,b,c\n1,2,3\n4,5,6", drop='b'), DT)
test(2352.2, fread(col.names=c("a","b","c"),"1,2,3\n4,5,6", drop='b'), DT)
Copy link
Member

Choose a reason for hiding this comment

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

what happens here?

fread(text = "
a,b,c
1,2,3
4,5,6
", col.names=c("b", "c", "d"), drop='b')

Copy link
Member Author

@ben-schwen ben-schwen Dec 26, 2025

Choose a reason for hiding this comment

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

Questionable! But current implementation favors header in read data > renaming col.names header.

Copy link
Member

Choose a reason for hiding this comment

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

I think either can be justified; I might find it more natural to prefer col.names.

either way we'll want to document it in ?fread and with a regression test.

cc @Rdatatable/committers to get consensus on the preferred approach.

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.

drop option fails with fread(col.names=,...)

2 participants