Skip to content

docs: run the pdf_image_extract() example only when png is installed - #70

Merged
billdenney merged 1 commit into
mainfrom
claude/example-png-guard
Sep 27, 2026
Merged

billdenney merged 1 commit into
mainfrom
claude/example-png-guard

Conversation

@billdenney

Copy link
Copy Markdown
Member

The example extracts the fixture's image, which takes the non-JPEG path and so needs png, a suggested package. It did not check for png, so R CMD check with only strong dependencies available (R_CHECK_DEPENDS_ONLY=true, CRAN's noSuggests flavour) failed in the examples. R-hub's nosuggests container showed the failure. ?pdf_render_to_png's example already guards with
requireNamespace("png"), and png is the only suggested package the package uses at run time. With the guard, nosuggests passes the examples and tests.

The example extracts the fixture's image, which takes the non-JPEG
path and so needs png, a suggested package. It did not check for png,
so R CMD check with only strong dependencies available
(_R_CHECK_DEPENDS_ONLY_=true, CRAN's noSuggests flavour) failed in
the examples. R-hub's nosuggests container showed the failure.
?pdf_render_to_png's example already guards with
requireNamespace("png"), and png is the only suggested package the
package uses at run time. With the guard, nosuggests passes the
examples and tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@billdenney
billdenney merged commit a2b0a6f into main Sep 27, 2026
12 checks passed
@billdenney
billdenney deleted the claude/example-png-guard branch September 27, 2026 16:44
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.

1 participant