Repository navigation
Test parse error reporting for R, Rd, and vignette files - #274
Merged
Merged
Conversation
Follow-up to the review on #270. - Build the empty parse data frame explicitly instead of relying on getParseData(parse(text = "")). - Assert that the reported error names the source file, for Rd, R and vignette files, and that only Rd and vignette messages note that line numbers refer to extracted or tangled code. - Check that checkVigSessionInfo() and checkVigEvalAllFalse() skip an unparseable vignette without raising conditions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I found nothing worth raising. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devel #274 +/- ##
==========================================
+ Coverage 70.07% 70.21% +0.13%
==========================================
Files 15 15
Lines 2787 2793 +6
==========================================
+ Hits 1953 1961 +8
+ Misses 834 832 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the review on #270.
Changes
.parseError()now builds the empty parse data frame explicitly (.emptyParseData()) instead of relying ongetParseData(parse(text = "")). That call does return a 0-row, 9-column data frame on current R, so this is hardening, not a bug fix..parseError():man/broken.Rdand notes that line numbers refer to the extracted examples. The empty result has the same columns asgetParseData()..R: the message namesbroken.R, with no line-number note. The broken file is dropped from the parsed code, and a good file in the same package is kept.checkVigSessionInfo()andcheckVigEvalAllFalse()skip an unparseable vignette without raising any condition.Review point (1) on #270 said the existing test could pass if the file was dropped for any reason. The
checkCounter()call already asserted exactly one ERROR, but the new tests also check the message text.Checks
inst/tinytest/test_BiocCheck.Rpasses 166 of 166 on R-devel (2026-12-02 r91021) with Bioc 3.25.Not in this PR: at
inst/tinytest/test_BiocCheck.R:216, a barestillZero()aftercheckLicenseForRestrictiveUse("GPL-3.0")asserts nothing. That check actually raises a NOTE ("License 'GPL-3.0' unknown"). The bare calls at lines 220 and 1116 are also no-ops. These are best handled separately.🤖 Generated with Claude Code