-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Currently, ragg
doesn't catch segmentation faults due to invalid res
, width
, height
, units
, ... etc. (see r-lib/ragg#82). So, would it make sense to add sanity checks before calling the device or give an option to switch between ragg
and grDevices
by default (without specifying the device
argument), even if ragg
is available?
Lines 180 to 188 in 6d94f0d
if (requireNamespace('ragg', quietly = TRUE)) { | |
png_dev <- ragg::agg_png | |
jpeg_dev <- ragg::agg_jpeg | |
tiff_dev <- ragg::agg_tiff | |
} else { | |
png_dev <- grDevices::png | |
jpeg_dev <- grDevices::jpeg | |
tiff_dev <- grDevices::tiff | |
} |
Metadata
Metadata
Assignees
Labels
No labels