Skip to content

Fix R CMD check WARNING from parFlags() deprecation example - #72

Merged
vertesy merged 1 commit into
mainfrom
claude/fix-parflags-deprecated-example
Sep 17, 2026
Merged

vertesy merged 1 commit into
mainfrom
claude/fix-parflags-deprecated-example

Conversation

@vertesy

@vertesy vertesy commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • parFlags() is deprecated (.Deprecated("parFlags2")), but its own @examples block called parFlags() itself.
  • Running that example during R CMD check triggers a deprecation warning. CI treats any warning as fatal (error-on: "warning" in .github/workflows/R-CMD-check.yaml).
  • Same root cause and fix as ifExistsElse() in Wrap ifExistsElse examples in dontrun block #71.

Verification

  • Locally built the package and ran R CMD check --as-cran (same flags as CI):
    • Before fix: checking examples ... WARNING — Warning: 'parFlags' is deprecated.
    • After fix: checking examples ... OK
  • Scanned the rest of R/Stringendo.R (all .Deprecated() call sites, argument/example consistency) for similar issues — nothing else found.

Changes

  • R/Stringendo.R: wrapped parFlags()'s @examples in \dontrun{}.
  • man/parFlags.Rd: regenerated to match (wrapped example in \dontrun{}).

Note

https://claude.ai/code/session_01E1a5jFs1rFR2uhDtLLp3EA


Generated by Claude Code

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
@vertesy
vertesy merged commit 3c7eabf into main Sep 17, 2026
1 check passed
@vertesy
vertesy deleted the claude/fix-parflags-deprecated-example branch September 17, 2026 12:10
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