Skip to content

move SDenv helpers from [ - #7942

Open
ben-schwen wants to merge 2 commits into
brk/a6_check_argsfrom
brk/a7_SDenv
Open

ben-schwen wants to merge 2 commits into
brk/a6_check_argsfrom
brk/a7_SDenv

Conversation

@ben-schwen

Copy link
Copy Markdown
Member

Towards #852

@codecov

codecov Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.09%. Comparing base (ffa2960) to head (06cf638).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           brk/a6_check_args    #7942      +/-   ##
=====================================================
- Coverage              99.09%   99.09%   -0.01%     
=====================================================
  Files                     88       88              
  Lines                  17437    17429       -8     
=====================================================
- Hits                   17279    17271       -8     
  Misses                   158      158              

☔ 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 Oct 24, 2026 •

Copy link
Copy Markdown
  • HEAD=brk/a7_SDenv faster P<0.001 for memrecycle regression fixed in #5463
  • HEAD=brk/a7_SDenv slower P<0.001 for DT[by,verbose=TRUE] improved in #6296
  • HEAD=brk/a7_SDenv faster P<0.001 for as.data.table.array improved in #7019

(Plot image upload to picrd.com failed; download the artifact below to view plots)

Generated via commit 06cf638

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

Task Duration
R setup and installing dependencies 1 minutes and 52 seconds
Installing different package versions 48 seconds
Running and plotting the test cases 6 minutes and 1 seconds

Comment thread R/data.table.R Outdated
.dt_new_SDenv = function(jsub, names_x, callenv) {
SDenv = new.env(parent=callenv)

syms = all.vars(jsub)

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.

jsub is only referenced once, so maybe the argument should be syms (or jvars=all.vars(jsub)) instead?

Comment thread R/data.table.R Resolved
Comment thread R/data.table.R Outdated

syms = all.vars(jsub)
syms = syms[startsWith(syms, "..")]
syms = grepv("^[.][.](?:[.]|[0-9]+)$", syms, invert=TRUE) # exclude ellipsis and '..n' ellipsis elements

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.

I am still thinking we can combine these two statements e.g.

syms = grepv("^[.][.](?:[^0-9.]|[0-9].*[^0-9])", syms)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I adapted it to syms = grepv("^[.][.](?:[^0-9.]|[.].|[0-9].*[^0-9])", syms) to also handle ...x searching for .x

@ben-schwen
ben-schwen removed this pull request from stack #7933 November 3, 2026 09:15
@ben-schwen
ben-schwen added this pull request to stack #7953 November 3, 2026 09:16
@ben-schwen
ben-schwen force-pushed the brk/a7_SDenv branch 2 times, most recently from 82a3a27 to fb797db Compare November 3, 2026 09:51
@ben-schwen
ben-schwen force-pushed the brk/a7_SDenv branch 4 times, most recently from cafb38d to fb98102 Compare November 3, 2026 17:25

This branch has not been deployed

No deployments
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