trevorld / gridpattern

'grid' Pattern Grobs
https://trevorldavis.com/R/gridpattern/dev
Other
31 stars 1 forks source link

Keep "guess_has_R4.1_features()" up to date #50

Closed trevorld closed 1 year ago

trevorld commented 2 years ago
trevorld commented 2 years ago
trevorld commented 2 years ago

R-devel (will be 4.2.0) will introduce grDevices::dev.capabilities() which allows package developer to query the implemented capabilities of the active graphics device at drawing time but the graphics device author must provide this information. In future could be used as a fallback for graphic devices that we don't know support the R 4.1 features.

trevorld commented 1 year ago

Starting with {vdiffr} v1.0.6 {vdiffr}'s version of svglite() now has device name "devSVG_vdiffr" which allows us to distinguish it from {svglite}'s device name of "devSVG": https://github.com/r-lib/vdiffr/pull/136

trevorld commented 1 year ago

I think if you have R 4.2+ and {vdiffr} 1.06+ then we might have full coverage for current graphics devices and all future graphics devices assuming that they will pass that information to dev.capabilities().