#4244 Fix saving plots with no background

Merged Kara Woo karawoo
Coverage Reach
theme-defaults.r guide-legend.r guide-bins.R guide-colorbar.r plot-build.r utilities.r guides-axis.r compat-plyr.R labeller.r facet-.r margins.R guides-.r scale-date.r theme.r ggproto.r aes.r legend-draw.r stat-contour.r scale-.r geom-sf.R theme-elements.r bin.R layer.r facet-wrap.r coord-sf.R save.r aes-evaluation.r geom-path.r scale-expansion.r geom-point.r quick-plot.r scale-view.r coord-munch.r guide-colorsteps.R coord-transform.r stat-summary-bin.R plot-construction.r stat-bin2d.r scale-viridis.r geom-label.R fortify-spatial.r facet-grid-.r position-dodge2.r geom-abline.r stat-summary.r stat-density.r stat-ellipse.R position-collide.r plot.r utilities-break.r summarise-plot.R stat-smooth-methods.r annotation-logticks.r limits.r zzz.r utilities-help.r stat-ydensity.r scale-hue.r stat-density-2d.r scale-type.R performance.R geom-contour.r scale-colour.r fortify-multcomp.r geom-density2d.r geom-dotplot.r coord-cartesian-.r scale-size.r stat-summary-2d.r geom-ribbon.r reshape-add-margins.R geom-text.r grob-dotstack.r stat-bindot.r geom-boxplot.r zxx.r scale-identity.r position-stack.r annotation.r scales-.r geom-violin.r scale-discrete-.r fortify.r stat-quantile.r hexbin.R layer-sf.R utilities-table.r scale-manual.r geom-hex.r summary.r scale-brewer.r guides-grid.r scale-continuous.r stat-smooth.r stat-function.r geom-vline.r geom-map.r stat-bin.r coord-polar.r scale-gradient.r geom-hline.r coord-flip.r axis-secondary.R fortify-map.r geom-curve.r utilities-grid.r annotation-raster.r position-dodge.r geom-smooth.r utilities-matrix.r stat-summary-hex.r stat-count.r geom-raster.r geom-histogram.r scale-steps.R geom-segment.r stat-qq-line.R annotation-custom.r geom-jitter.r geom-rect.r annotation-map.r geom-rug.r coord-map.r geom-quantile.r geom-density.r bench.r geom-pointrange.r labels.r scale-binned.R geom-function.R geom-bar.r geom-freqpoly.r stat-boxplot.r stat-binhex.r geom-crossbar.r stat-qq.r geom-spoke.r stat-ecdf.r grob-absolute.r geom-col.r geom-linerange.r guides-none.r layout.R geom-tile.r geom-polygon.r stat-sf-coordinates.R geom-errorbar.r grouping.r stat-sum.r stat-unique.r geom-count.r theme-current.R stat-identity.r geom-bin2d.r stat-sf.R scale-alpha.r geom-blank.r geom-errorbarh.r position-.r fortify-lm.r geom-defaults.r position-jitterdodge.R geom-.r plot-last.r position-jitter.r utilities-resolution.r coord-.r grob-null.r autolayer.r coord-fixed.r scale-shape.r autoplot.r scale-linetype.r coord-quickmap.R scale-grey.r position-nudge.R range.r facet-null.r position-identity.r

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -87,7 +87,7 @@
Loading
87 87
    filename <- file.path(path, filename)
88 88
  }
89 89
  if (is_null(bg)) {
90 -
    bg <- calc_element("plot.background", plot_theme(plot))$fill
90 +
    bg <- calc_element("plot.background", plot_theme(plot))$fill %||% "transparent"
91 91
  }
92 92
  old_dev <- grDevices::dev.cur()
93 93
  dev(filename = filename, width = dim[1], height = dim[2], bg = bg, ...)

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R 80.49%
Project Totals (179 files) 80.49%
Loading