Skip to content

ggsave error with type="cairo" or type="cairo-png" #4524

Closed
@martin-a-wade

Description

@martin-a-wade

ggsave produces an error when including type="cairo" or type="cairo-png", which worked in ggplot2 <=3.3.3.
(R4.0.3, Windows 10)

library(ggplot2)
p <- ggplot(mpg, aes(cty, hwy)) + geom_point()
ggsave("test.png", type = "cairo")
# also error for:
# ggsave("test.png", type = "cairo-png")

Error in png_dev(..., res = dpi, units = "in") :
unused argument (type = "cairo")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions