Skip to content

Regression: ggsave() fails if device is function without ... #4539

Closed
@bwiernik

Description

@bwiernik

Since a9b3b17, if a device is passed to ggsave() and this device lacks a ... argument (at least if it also uses a file argument instead of filename), it produces an "unused argument" error.

ggplot2::ggsave("test.emf", ggplot2::ggplot(), device = devEMF::emf)
#> Saving 7 x 5 in image
#> Error in (function (file = "Rplot.emf", width = 7, height = 7, bg = "transparent", : unused argument (filename = "test.emf")

Created on 2021-07-02 by the reprex package (v2.0.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions