Skip to content

Wrap ifExistsElse examples in dontrun block - #71

Merged
vertesy merged 1 commit into
mainfrom
claude/compassionate-turing-lt4bev
Sep 17, 2026
Merged

vertesy merged 1 commit into
mainfrom
claude/compassionate-turing-lt4bev

Conversation

@vertesy

@vertesy vertesy commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Summary

Updated the documentation examples for the ifExistsElse() function to wrap them in a \dontrun{} block to prevent automatic execution during package checks.

Key Changes

  • Modified the @examples section in R/Stringendo.R to wrap the example calls in \dontrun{}
  • Updated the corresponding generated documentation file man/ifExistsElse.Rd to reflect the same change
  • Reformatted the examples section to follow proper roxygen2 syntax with the \dontrun{} directive

Details

The examples for ifExistsElse("pi") and ifExistsElse("pi22") are now wrapped in a \dontrun{} block. This prevents R CMD check from attempting to execute these examples, which is a common practice for functions that may have side effects or require specific conditions to run properly.

https://claude.ai/code/session_01E1a5jFs1rFR2uhDtLLp3EA

ifExistsElse() is deprecated in favor of get0(), but its own
@examples called itself, triggering a deprecation warning during
R CMD check. The workflow treats warnings as failures (error-on:
"warning"), so this broke CI. Wrap the example in \dontrun{} so
it documents usage without executing the deprecated call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1a5jFs1rFR2uhDtLLp3EA
@vertesy
vertesy marked this pull request as ready for review September 17, 2026 11:51
@vertesy
vertesy merged commit 684dc11 into main Sep 17, 2026
1 check passed
@vertesy
vertesy deleted the claude/compassionate-turing-lt4bev branch September 17, 2026 11:53
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