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 (9ddce16) to head (60e765d).

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 much faster for Date-IDate regression in #7213
  • HEAD=brk/a7_SDenv much slower 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 60e765d

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

Task Duration
R setup and installing dependencies 1 minutes and 7 seconds
Installing different package versions 20 seconds
Running and plotting the test cases 5 minutes and 3 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

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