Implement R 4.2.x graphics features
Groups: https://www.stat.auckland.ac.nz/~paul/Reports/GraphicsEngine/groups/groups.html
Paths: https://www.stat.auckland.ac.nz/~paul/Reports/GraphicsEngine/paths/
Luminance Masks: https://www.stat.auckland.ac.nz/~paul/Reports/GraphicsEngine/masks/masks.html (might even work, already, but untested)
Link to Cairo device source (to figure out the fine points): https://github.com/wch/r-source/blob/R-4-2-branch/src/library/grDevices/src/cairo/cairoFns.c
Should also take a look at canGenIdle, and use a smarter check based on R_GE_version(), rather than R_GE_checkVersionOrDie().
Edited by Thomas Friedrichsmeier