Repository navigation
Fixes problem with symbols as single expression inside if clause - #300
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The focused guard resolves the reported failure and is covered by a representative regression test.
1 open finding
What changed in this PR
Fixes symbol-only expressions inside if blocks so qenv dependency extraction no longer errors.
Changes:
- Guards symbol expressions before AST subsetting.
- Adds regression coverage for issue #299.
- Documents the bug fix.
| File | Description |
|---|---|
R/utils-get_code_dependency.R |
Safely handles symbol expressions. |
tests/testthat/test-qenv_within.R |
Adds regression coverage. |
NEWS.md |
Records the fix. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Unit Tests Summary 1 files 14 suites 5s ⏱️ Results for commit 7115c7e. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceAdditional test case details
Results for commit a1aac7f ♻️ This comment has been updated with latest results. |
Code Coverage SummaryDiff against mainResults for commit: 7115c7e Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
wangben718
left a comment
There was a problem hiding this comment.
LGTM, thanks for working on this issue! I checked a few more cases (nested braces, for loops, constants, a symbol followed by reassigning the same object) and they all work.
Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>

Pull Request