Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: graphics device capabilities checker #5332

Closed
teunbrand opened this issue Jun 20, 2023 · 0 comments · Fixed by #5350
Closed

Feature request: graphics device capabilities checker #5332

teunbrand opened this issue Jun 20, 2023 · 0 comments · Fixed by #5350
Labels
feature a feature request or enhancement internals 🔎

Comments

@teunbrand
Copy link
Collaborator

This feature request follows up on discussion in #5299 (comment).

To summarise: if ggplot2 is considering taking up newer graphics features, such as patterns, we'd need to check if the device is capable of using these features. Several extension developers also expressed interest in having ggplot2 export such a checker.

@trevorld has released such a checker here that is free to copy and/or adapt due to the 'unlicence' licence.

There are a few hurdles that makes implementing this checker more complicated:

  • {svglite} and {ragg} don't report several features that are implemented in dev.capabilities().
  • IIRC {vdiffr} uses a variant of {svglite} that uses the same device name, but does not support patterns for stability reasons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement internals 🔎
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant