Skip to content

move SDenv helpers from [ - #7942

Open
ben-schwen wants to merge 1 commit into
brk/a6_check_argsfrom
brk/a7_SDenv
Open

ben-schwen wants to merge 1 commit 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 (f7e2b2d) to head (dcea6e7).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           brk/a6_check_args    #7942      +/-   ##
=====================================================
- Coverage              99.09%   99.09%   -0.01%     
=====================================================
  Files                     88       88              
  Lines                  17428    17422       -6     
=====================================================
- Hits                   17270    17264       -6     
  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

No obvious timing issues in HEAD=brk/a7_SDenv

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

Generated via commit dcea6e7

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

Task Duration
R setup and installing dependencies 28 minutes and 13 seconds
Installing different package versions 11 minutes and 10 seconds
Running and plotting the test cases 4 minutes and 52 seconds

No behaviour change.
Comment thread R/data.table.R
.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
Comment thread R/data.table.R

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)

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