Skip to content

Conversation

@MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Dec 28, 2025

Another easy win for #3992.

The only difficulty is ensuring that if fill is set to something outside levels(x), the output is a well-formed factor. coerceAs() already has some logic to that effect, we've just got to take care & actually use it.

@codecov
Copy link

codecov bot commented Dec 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.97%. Comparing base (291a711) to head (bc87775).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7539   +/-   ##
=======================================
  Coverage   98.97%   98.97%           
=======================================
  Files          87       87           
  Lines       16733    16739    +6     
=======================================
+ Hits        16561    16567    +6     
  Misses        172      172           

☔ 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 28, 2025

  • HEAD=nafill-factor stopped early for fread disk overhead improved in #6925
    Comparison Plot

Generated via commit bc87775

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

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

Base automatically changed from nafill-logical to master December 28, 2025 10:10
@MichaelChirico

This comment was marked as outdated.

if (!isNull(ATTRIB(VECTOR_ELT(x, i))))
copyMostAttrib(VECTOR_ELT(x, i), VECTOR_ELT(ans, i));
SEXP xi = VECTOR_ELT(x, i);
if (!isNull(ATTRIB(xi))) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (!isNull(ATTRIB(xi))) {
if (ANY_ATTRIB(ATTRIB(xi))) {

probably should go after #7487 for the backport of R < 4.5.0

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.

2 participants