Fix R CMD check WARNING from parFlags() deprecation example - #72
Merged
Merged
Conversation
parFlags() is deprecated in favor of parFlags2(), but its own @examples called itself, triggering a deprecation warning during R CMD check (error-on: "warning" fails the build on any warning). Confirmed locally with R CMD check --as-cran: the example produced "Warning: 'parFlags' is deprecated" under "checking examples". Wrap the example in \dontrun{} so it documents usage without executing the deprecated call, same fix as ifExistsElse() in #71. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1a5jFs1rFR2uhDtLLp3EA
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.
Summary
parFlags()is deprecated (.Deprecated("parFlags2")), but its own@examplesblock calledparFlags()itself.R CMD checktriggers a deprecation warning. CI treats any warning as fatal (error-on: "warning"in.github/workflows/R-CMD-check.yaml).ifExistsElse()in Wrap ifExistsElse examples in dontrun block #71.Verification
R CMD check --as-cran(same flags as CI):checking examples ... WARNING—Warning: 'parFlags' is deprecated.checking examples ... OKR/Stringendo.R(all.Deprecated()call sites, argument/example consistency) for similar issues — nothing else found.Changes
R/Stringendo.R: wrappedparFlags()'s@examplesin\dontrun{}.man/parFlags.Rd: regenerated to match (wrapped example in\dontrun{}).Note
ifExistsElse()fix (Wrap ifExistsElse examples in dontrun block #71), since that fix isn't inmainyet. The diff will narrow to just theparFlagschange once Wrap ifExistsElse examples in dontrun block #71 merges.https://claude.ai/code/session_01E1a5jFs1rFR2uhDtLLp3EA
Generated by Claude Code