Repository navigation
move SDenv helpers from [ - #7942
ben-schwen wants to merge 2 commits into
Conversation
5f0c0a1 to
8e5adec
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
8e5adec to
6252710
Compare
(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
|
6252710 to
dcea6e7
Compare
| .dt_new_SDenv = function(jsub, names_x, callenv) { | ||
| SDenv = new.env(parent=callenv) | ||
|
|
||
| syms = all.vars(jsub) |
There was a problem hiding this comment.
jsub is only referenced once, so maybe the argument should be syms (or jvars=all.vars(jsub)) instead?
|
|
||
| syms = all.vars(jsub) | ||
| syms = syms[startsWith(syms, "..")] | ||
| syms = grepv("^[.][.](?:[.]|[0-9]+)$", syms, invert=TRUE) # exclude ellipsis and '..n' ellipsis elements |
There was a problem hiding this comment.
I am still thinking we can combine these two statements e.g.
syms = grepv("^[.][.](?:[^0-9.]|[0-9].*[^0-9])", syms)
There was a problem hiding this comment.
I adapted it to syms = grepv("^[.][.](?:[^0-9.]|[.].|[0-9].*[^0-9])", syms) to also handle ...x searching for .x
dcea6e7 to
d7c48c7
Compare
0724500 to
60e765d
Compare
82a3a27 to
fb797db
Compare
cafb38d to
fb98102
Compare
fb98102 to
dfc5d91
Compare
No behaviour change.
dfc5d91 to
06cf638
Compare
Towards #852