Skip to content

ggsave always opens a graphics window after upgrading to ggplot2 version3.0.0 #2830

@ghost

Description

Hello,
ggsave() opens a graphics window in R after I upgraded ggplot2 to version 3.0.0.
Function has width and height parameters, but it still opens up and it is very ugly inside a package.
How can I supress this graphic device?

p1 <- ggplot()
ggsave(plot= p1, filename = '/home/home/Desktop/Folder/plot.png', width = 5, height = 5)

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