Inspired by @kjhealy's amusing post here: https://kieranhealy.org/blog/archives/2025/02/06/kerning-and-kerning-in-a-widening-gyre/
Should be easy enough to add some kind of if (capabilities("cairo")) logic to R/setup_device.R and add an appropriate switch argument. C.f.
|
if (exttype == "jpg") exttype = "jpeg" |
|
switch(exttype, |
|
png = png(filepath, width = filewidth, height = fileheight, units = "in", res = fileres), |
|
jpeg = jpeg(filepath, width = filewidth, height = fileheight, units = "in", res = fileres), |
|
pdf = pdf(filepath, width = filewidth, height = fileheight), |
|
svg = svg(filepath, width = filewidth, height = fileheight), |
|
stop("\nUnsupported file extension. Only '.png', '.jpg', '.pdf', or '.svg' are allowed.\n") |
|
) |
Inspired by @kjhealy's amusing post here: https://kieranhealy.org/blog/archives/2025/02/06/kerning-and-kerning-in-a-widening-gyre/
Should be easy enough to add some kind of
if (capabilities("cairo"))logic toR/setup_device.Rand add an appropriate switch argument. C.f.tinyplot/R/setup_device.R
Lines 17 to 24 in 002bee2