title: ggsave error with wmf unused argument (bg = "white")
body: <p>ggsave in ggplot (3.3.4) generates this error:</p>
  <blockquote>
  <p>Error in grDevices::win.metafile(...) : unused argument (bg = &quot;white&quot;)</p>
  </blockquote>
  <p>However, I <em><strong>can</strong></em> export the plot interactively using the RStudio | Plots menu.</p>
  <p>reproducible example:</p>
  <pre><code>library(tidyverse)
  e &lt;- ggplot(mpg, aes(cty, hwy))
  e + geom_point()
  ggsave(&quot;test.wmf&quot;)
  ggsave(&quot;test.emf&quot;)
  </code></pre>
  <blockquote>
  <p>Saving 8.98 x 5.98 in image</p>
  <p>Error in grDevices::win.metafile(...) : unused argument (bg = &quot;white&quot;)</p>
  </blockquote>
  <pre><code>ggsave(&quot;test.emf&quot;)
  </code></pre>
  <blockquote>
  <p>Saving 8.98 x 5.98 in image</p>
  <p>Error in grDevices::win.metafile(...) : unused argument (bg = &quot;white&quot;)</p>
  </blockquote>
  <p>Some further trouble-shooting suggests that the problem is with ggsave because this code works fine:</p>
  <pre><code>library(tidyverse)
  e &lt;- ggplot(mpg, aes(cty, hwy))
  e &lt;- e + geom_point()
  win.metafile(&quot;test.wmf&quot;)
  print(e)
  dev.off()
  </code></pre>