Ggsave cairo error


I generally have been able to export pngs of my plots, by using ggsave and setting type to cairo for antialiasing. However, suddenly I got this error:

Using ragg device as default. Ignoring `type` and `antialias` arguments

This is my code for exporting the last plot as a png:

ggsave(filename = 'X.png', 
+        dpi = 300, 
+        type = 'cairo',
+        width = 30, height = 15, units = 'in')


Ragg is an alternative to Cairo

That's not an error, it's a message. This was introduced in ggplot2 3.3.5, because it generated an error in 3.3.4.

But how do I set cairo as default rather than ragg? Ragg creates some issues for me.

Uninstall ragg first and try again.

If that does not work, then you can't unless you downgrade ggplot2 to <= 3.3.3.

Uninstalling ragg worked, simple but effective!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.