rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.68k stars 1.09k forks source link

Incorporate ragg as default graphics driver #8437

Open mikebessuille opened 3 years ago

mikebessuille commented 3 years ago

From JJ: Thomas (who works for Hadley) has a custom graphics device available as an R package here: https://github.com/r-lib/ragg. If we used this rather than delegating to the R png implementation we'd get a huge performance boost and would also pickup some other features like RTL text and yes.....emojis in plots! Seriously though the performance boost + the cleaning up of various plots defects we've accumulated due to delegation (e.g. we don't support transparency) will make this very worthwhile. Hadley let me know that it's not a good time for this yet b/c they are moving it to a better maintained fork of ragg (the 2D library underneath) but will let me know if/when this becomes worth doing. We'd actually take the native code from ragg as opposed to depending on the package.

We would take the native code from the package and incorporate it into the IDE (so no package, and no clunky/slow "shadow graphics device"). We'd actually implement the device directly. They are also re-implementing using blend2d (the aforementioned better maintained fork)

mikebessuille commented 3 years ago

This would resolve https://github.com/rstudio/rstudio/issues/2142 and many windows plotting issues

rajesh06 commented 3 years ago

I had an issue with fonts when I switched to AGG. The issue is described here: https://stackoverflow.com/questions/65009313/why-arent-axis-titles-and-labels-showing-up-in-base-r-when-using-plot/65237083#65237083

jmcphers commented 3 years ago

Recently from the Tidyverse blog: https://www.tidyverse.org/blog/2021/02/modern-text-features/