Wishlist-for-R icon indicating copy to clipboard operation
Wishlist-for-R copied to clipboard

`grDevices::dev.capabilities()` enhancements

Open trevorld opened this issue 2 years ago • 2 comments

  1. dev.capabilities() could also be used to query whether the current graphics device supports Unicode. In such a case I'd expect it to return FALSE if pdf() is the current graphics device and something else for the Cairo or Quartz devices.

  2. Add "Idle" as possible "event" in dev.capabilities("events"):

    • https://stat.ethz.ch/pipermail/r-devel/2022-April/081663.html
    • {eventloop} is an example package that needs to know the current graphics device supports the "Idle" event

trevorld avatar Aug 31 '23 21:08 trevorld

Add "Idle" as possible "event" in dev.capabilities("events")

This improvement was incorporated into R 4.4.3.

trevorld avatar Mar 05 '25 21:03 trevorld

Add "Idle" as possible "event" in dev.capabilities("events")

This improvement was incorporated into R 4.3.3.

Thanks for getting this implemented and this follow up. I think you meant R 4.4.3 here; from https://cran.r-project.org/doc/manuals/r-release/NEWS.html

CHANGES IN R 4.4.3

  • dev.capabilities()$events now reports "Idle" if the device provides it, fixing PR#18836, thanks to Trevor Davis.

HenrikBengtsson avatar Mar 05 '25 21:03 HenrikBengtsson