Running ‘testthat.R’ [80s/133s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggplot2)
  > 
  > test_check("ggplot2")
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  Regions defined for each Polygons
  Regions defined for each Polygons
  Please use `stat_summary_2d()` instead
  Please use `stat_summary_2d()` instead
  Smoothing formula not specified. Using: y ~ x
  `geom_smooth()` using method = 'loess' and formula = 'y ~ x'
  `geom_smooth()` using method = 'loess' and formula = 'y ~ x'
  No summary function supplied, defaulting to `mean_se()`
  Saving 7 x 7 in image
  Don't know how to automatically pick scale for object of type <function>. Defaulting to continuous.
  Don't know how to automatically pick scale for object of type <function>. Defaulting to continuous.
  Don't know how to automatically pick scale for object of type <function>. Defaulting to continuous.
  `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
  `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
  `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
  `geom_smooth()` using method = 'loess' and formula = 'y ~ x'
  [ FAIL 3 | WARN 4 | SKIP 147 | PASS 1455 ]
  
  ══ Skipped tests (147) ═════════════════════════════════════════════════════════
  • On CRAN (146): 'test-aes-calculated.R:58:3', 'test-aes-calculated.R:75:3',
    'test-aes.R:160:3', 'test-aes.R:177:3', 'test-aes.R:186:3',
    'test-aes.R:190:3', 'test-aes.R:198:3', 'test-aes.R:214:3',
    'test-annotate.R:28:3', 'test-annotate.R:58:3', 'test-annotate.R:69:3',
    'test-annotate.R:74:3', 'test-annotate.R:78:3', 'test-autolayer.R:2:3',
    'test-autoplot.R:2:3', 'test-compat-plyr.R:2:3', 'test-coord-.R:2:3',
    'test-coord-cartesian.R:23:3', 'test-coord-cartesian.R:54:3',
    'test-coord-flip.R:3:3', 'test-coord-map.R:7:3', 'test-coord-map.R:21:3',
    'test-coord-polar.R:94:3', 'test-coord-transform.R:101:3',
    'test-coord-transform.R:110:3', 'test-coord_sf.R:17:3',
    'test-coord_sf.R:30:3', 'test-coord_sf.R:88:3', 'test-coord_sf.R:237:3',
    'test-draw-key.R:7:3', 'test-draw-key.R:43:3', 'test-error.R:2:3',
    'test-facet-.R:145:3', 'test-facet-.R:149:3', 'test-facet-.R:232:3',
    'test-facet-.R:249:3', 'test-facet-.R:300:3', 'test-facet-.R:371:3',
    'test-facet-.R:376:3', 'test-facet-.R:413:3', 'test-facet-labels.R:153:3',
    'test-facet-layout.R:88:3', 'test-facet-layout.R:158:3',
    'test-facet-layout.R:183:3', 'test-facet-layout.R:198:3',
    'test-facet-strips.R:124:3', 'test-facet-strips.R:167:3',
    'test-fortify.R:46:3', 'test-geom-.R:3:3', 'test-geom-boxplot.R:78:3',
    'test-geom-boxplot.R:84:3', 'test-geom-dotplot.R:1:1',
    'test-geom-hex.R:25:3', 'test-geom-hex.R:35:3',
    'test-geom-hline-vline-abline.R:15:3', 'test-geom-hline-vline-abline.R:40:3',
    'test-geom-hline-vline-abline.R:51:3', 'test-geom-jitter.R:2:3',
    'test-geom-label.R:2:3', 'test-geom-linerange.R:3:3', 'test-geom-map.R:2:3',
    'test-geom-path.R:10:3', 'test-geom-path.R:60:3', 'test-geom-path.R:77:3',
    'test-geom-point.R:22:3', 'test-geom-polygon.R:25:3',
    'test-geom-raster.R:2:3', 'test-geom-raster.R:20:3',
    'test-geom-ribbon.R:5:3', 'test-geom-rug.R:24:3', 'test-geom-sf.R:149:3',
    'test-geom-sf.R:179:3', 'test-geom-sf.R:209:3', 'test-geom-sf.R:244:3',
    'test-geom-smooth.R:29:3', 'test-geom-smooth.R:88:3', 'test-geom-text.R:2:3',
    'test-geom-violin.R:52:3', 'test-geom-violin.R:86:3', 'test-ggproto.R:9:3',
    'test-ggsave.R:113:3', 'test-ggsave.R:139:3', 'test-ggsave.R:143:3',
    'test-guides.R:1:1', 'test-labellers.R:10:3', 'test-labellers.R:21:3',
    'test-labels.R:79:3', 'test-layer.R:4:3', 'test-layer.R:30:3',
    'test-layer.R:60:3', 'test-layer.R:67:3', 'test-layer.R:114:3',
    'test-layer.R:138:3', 'test-limits.R:2:3', 'test-margins.R:2:3',
    'test-plot.R:2:3', 'test-plot.R:7:3', 'test-position-collide.R:3:3',
    'test-position-jitterdodge.R:3:3', 'test-position-stack.R:71:3',
    'test-prohibited-functions.R:60:3', 'test-qplot.R:54:3',
    'test-scale-binned.R:3:3', 'test-scale-colour-continuous.R:2:3',
    'test-scale-discrete.R:147:3', 'test-scale-expansion.R:7:3',
    'test-scale-hue.R:3:3', 'test-scale_date.R:16:3',
    'test-scales-breaks-labels.R:295:3', 'test-scales-breaks-labels.R:336:3',
    'test-scales-breaks-labels.R:365:3', 'test-scales.R:359:3',
    'test-scales.R:441:3', 'test-sec-axis.R:9:3', 'test-sec-axis.R:63:3',
    'test-sec-axis.R:140:3', 'test-sec-axis.R:202:3', 'test-sec-axis.R:242:3',
    'test-sec-axis.R:318:3', 'test-sec-axis.R:334:3', 'test-sec-axis.R:350:3',
    'test-stat-align.R:12:3', 'test-stat-align.R:28:3', 'test-stat-align.R:43:3',
    'test-stat-bin.R:4:3', 'test-stat-bin.R:122:3', 'test-stat-bin.R:188:3',
    'test-stat-bin2d.R:14:3', 'test-stat-boxplot.R:11:3',
    'test-stat-boxplot.R:26:3', 'test-stat-count.R:3:3',
    'test-stat-density.R:111:3', 'test-stat-density2d.R:94:3',
    'test-stat-ecdf.R:15:3', 'test-stat-qq.R:4:3', 'test-stat-sum.R:47:3',
    'test-stat-ydensity.R:2:3', 'test-summarise-plot.R:3:3', 'test-theme.R:1:1',
    'test-utilities.R:96:3', 'test-utilities.R:104:3', 'test-utilities.R:116:3',
    'test-utilities.R:121:3', 'test-utilities.R:125:3', 'test-utilities.R:130:3',
    'test-utilities.R:136:3'
  • stringsAsFactors only affects R <4.0 (1): 'test-data.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-aes-calculated.R:50:3'): make_labels() deprases mappings properly ──
  make_labels(aes(x = NULL)) (`actual`) not identical to list(x = "x") (`expected`).
  
  `actual$x`:   "NULL"
  `expected$x`: "x"   
  ── Error ('test-aes.R:29:3'): aes_q() & aes_string() preserve explicit NULLs ───
  Error in `FUN(X[[i]], ...)`: Aesthetic must be a one-sided formula, call, name, or constant.
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(expect_equal(aes_q(NULL), aes(NULL))) at test-aes.R:29:2
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_equal(aes_q(NULL), aes(NULL))
    4. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    5. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    6. └─ggplot2::aes_q(NULL)
    7.   └─base::lapply(mapping, as_quosure_aes)
    8.     └─ggplot2 (local) FUN(X[[i]], ...)
    9.       └─cli::cli_abort("Aesthetic must be a one-sided formula, call, name, or constant.")
   10.         └─rlang::abort(...)
  ── Failure ('test-aes.R:102:3'): labelling doesn't cause error if aesthetic is NULL ──
  p$labels$x (`actual`) not identical to "x" (`expected`).
  
  `actual`:   "NULL"
  `expected`: "x"   
  
  [ FAIL 3 | WARN 4 | SKIP 147 | PASS 1455 ]
  Deleting unused snapshots:
  • aes/alpha-set-in-alpha.svg
  • aes/stat-count-width-0-5.svg
  • aes/stat-count.svg
  • aes/stat-identity-width-0-5.svg
  • coord-cartesian/clip-turned-off-both-inside-and-outside-visible.svg
  • coord-cartesian/contract-range.svg
  • coord-polar/racetrack-plot-closed-and-has-center-hole.svg
  • coord-polar/racetrack-plot-closed-and-no-center-hole.svg
  • coord-polar/rays-circular-arcs-and-spiral-arcs.svg
  • coord-polar/rose-plot-with-has-equal-spacing.svg
  • coord-polar/secondary-axis-ticks-and-labels.svg
  • coord_sf/limits-specified-in-long-lat.svg
  • coord_sf/limits-specified-in-projected-coords.svg
  • coord_sf/non-sf-geoms-using-long-lat.svg
  • coord_sf/non-sf-geoms-using-projected-coords.svg
  • draw-key/horizontal-linerange-and-pointrange.svg
  • draw-key/rectangle-and-dotplot-key-glyphs.svg
  • facet-/left-justified-rotated-facet-labels-with-margins.svg
  • geom-dotplot/2-na-values-bin-along-y-stack-center.svg
  • geom-dotplot/2-na-values-dot-density-binning-binwidth-4.svg
  • geom-dotplot/3-stackgroups-bin-y-histodot.svg
  • geom-dotplot/3-stackgroups-dot-density-with-aligned-bins.svg
  • geom-dotplot/3-stackgroups-histodot.svg
  • geom-dotplot/basic-dotplot-with-dot-density-binning-binwidth-4.svg
  • geom-dotplot/bin-along-y-stack-center.svg
  • geom-dotplot/bin-along-y-stack-centerwhole-histodot.svg
  • geom-dotplot/bin-along-y-stack-centerwhole.svg
  • geom-dotplot/bin-y-continous-x-axis-grouping-by-x.svg
  • geom-dotplot/bin-y-continous-x-axis-single-x-group.svg
  • geom-dotplot/bin-y-dodged-coord-flip.svg
  • geom-dotplot/bin-y-dodged.svg
  • geom-dotplot/bin-y-dodging-3-stackgroups-histodot.svg
  • geom-dotplot/bin-y-three-x-groups-bins-aligned-across-groups.svg
  • geom-dotplot/bin-y-three-x-groups-bins-aligned-coord-flip.svg
  • geom-dotplot/bin-y-three-x-groups-fill-and-dodge.svg
  • geom-dotplot/bin-y-three-x-groups-stack-centerwhole.svg
  • geom-dotplot/dots-stacked-closer-stackratio-5-fill-white.svg
  • geom-dotplot/facets-3-groups-histodot-stackgroups.svg
  • geom-dotplot/histodot-binning-equal-bin-spacing.svg
  • geom-dotplot/larger-dots-dotsize-1-5-fill-white.svg
  • geom-dotplot/multiple-groups-bins-aligned.svg
  • geom-dotplot/multiple-groups-bins-not-aligned.svg
  • geom-dotplot/stack-center-with-coord-flip.svg
  • geom-dotplot/stack-center.svg
  • geom-dotplot/stack-centerwhole-with-coord-flip.svg
  • geom-dotplot/stack-centerwhole.svg
  • geom-dotplot/stack-down-with-coord-flip.svg
  • geom-dotplot/stack-down.svg
  • geom-dotplot/stack-up-with-coord-flip.svg
  • geom-dotplot/stack-up.svg
  • geom-dotplot/stackratio-1-5.svg
  • geom-dotplot/variable-linetype-and-size-specified-as-aesthetics.svg
  • geom-hex/hex-bin-plot-in-polar-coordinates.svg
  • geom-hline-vline-abline/flipped-lines-intersect-mid-bars.svg
  • geom-hline-vline-abline/lines-curved-in-azequalarea.svg
  • geom-hline-vline-abline/polar-lines-intersect-mid-bars.svg
  • geom-path/lines-changed-order-should-have-same-appearance.svg
  • geom-path/lines-colour-changed-order-should-have-same-appearance.svg
  • geom-path/lines-colour.svg
  • geom-raster/1-x-3-just-0-0.svg
  • geom-raster/1-x-3-set-limits.svg
  • geom-raster/1-x-3.svg
  • geom-raster/3-x-1-just-0-0.svg
  • geom-raster/3-x-1-set-limits.svg
  • geom-raster/3-x-1.svg
  • geom-raster/3-x-2-just-0-0.svg
  • geom-raster/3-x-2-set-limits.svg
  • geom-raster/irregular-categorical.svg
  • geom-sf/labels-for-north-carolina.svg
  • geom-sf/north-carolina-county-boundaries-with-more-than-one-arrow.svg
  • geom-sf/spatial-points.svg
  • geom-smooth/ribbon-turned-off-in-geom-smooth.svg
  • geom-violin/continuous-x-axis-many-groups-center-should-be-at-2-0.svg
  • geom-violin/continuous-x-axis-single-group-center-should-be-at-1-0.svg
  • geom-violin/coord-flip.svg
  • geom-violin/coord-polar.svg
  • geom-violin/dodging-and-coord-flip.svg
  • geom-violin/dodging.svg
  • geom-violin/grouping-on-x-and-fill-dodge-width-0-5.svg
  • geom-violin/grouping-on-x-and-fill.svg
  • geom-violin/narrower-width-5.svg
  • geom-violin/quantiles.svg
  • geom-violin/scale-area-to-sample-size-c-is-smaller.svg
  • geom-violin/with-smaller-bandwidth-and-points.svg
  • geom-violin/with-tails-and-points.svg
  • guides/align-facet-labels-facets-horizontal.svg
  • guides/align-facet-labels-facets-vertical.svg
  • guides/axis-guides-basic.svg
  • guides/axis-guides-check-overlap.svg
  • guides/axis-guides-negative-rotation.svg
  • guides/axis-guides-positive-rotation.svg
  • guides/axis-guides-text-dodged-into-rows-cols.svg
  • guides/axis-guides-vertical-negative-rotation.svg
  • guides/axis-guides-vertical-rotation.svg
  • guides/axis-guides-zero-breaks.svg
  • guides/axis-guides-zero-rotation.svg
  • guides/facet-grid-legend-on-bottom.svg
  • guides/facet-grid-legend-on-left.svg
  • guides/facet-grid-legend-on-right.svg
  • guides/facet-grid-legend-on-top.svg
  • guides/facet-wrap-legend-on-bottom.svg
  • guides/facet-wrap-legend-on-left.svg
  • guides/facet-wrap-legend-on-right.svg
  • guides/facet-wrap-legend-on-top.svg
  • guides/guide-axis-customization.svg
  • guides/guide-bins-can-remove-axis.svg
  • guides/guide-bins-can-show-arrows.svg
  • guides/guide-bins-can-show-limits.svg
  • guides/guide-bins-can-show-ticks.svg
  • guides/guide-bins-looks-as-it-should.svg
  • guides/guide-bins-sets-labels-when-limits-is-in-breaks.svg
  • guides/guide-bins-understands-coinciding-limits-and-bins-2.svg
  • guides/guide-bins-understands-coinciding-limits-and-bins-3.svg
  • guides/guide-bins-understands-coinciding-limits-and-bins.svg
  • guides/guide-bins-work-horizontally.svg
  • guides/guide-colorsteps-sets-labels-when-limits-is-in-breaks.svg
  • guides/guide-colorsteps-understands-coinciding-limits-and-bins-2.svg
  • guides/guide-colorsteps-understands-coinciding-limits-and-bins-3.svg
  • guides/guide-colorsteps-understands-coinciding-limits-and-bins.svg
  • guides/guide-coloursteps-can-have-bins-relative-to-binsize.svg
  • guides/guide-coloursteps-can-show-limits.svg
  • guides/guide-coloursteps-looks-as-it-should.svg
  • guides/guide-title-and-text-positioning-and-alignment-via-themes.svg
  • guides/guide-titles-with-coord-trans.svg
  • guides/guides-specified-in-guides.svg
  • guides/horizontal-gap-of-1cm-between-guide-and-guide-text.svg
  • guides/legend-inside-plot-bottom-left-of-legend-at-center.svg
  • guides/legend-inside-plot-bottom-left.svg
  • guides/legend-inside-plot-centered.svg
  • guides/legend-inside-plot-top-right.svg
  • guides/legend-on-bottom.svg
  • guides/legend-on-left.svg
  • guides/legend-on-right.svg
  • guides/legend-on-top.svg
  • guides/multi-line-guide-title-works.svg
  • guides/one-combined-colorbar-for-colour-and-fill-aesthetics.svg
  • guides/padding-in-legend-box.svg
  • guides/position-guide-titles.svg
  • guides/rotated-guide-titles-and-labels.svg
  • guides/thick-axis-lines.svg
  • guides/vertical-gap-of-1cm-between-guide-title-and-guide.svg
  • guides/white-to-red-colorbar-thick-black-ticks-green-frame.svg
  • guides/white-to-red-colorbar-white-ticks-no-frame.svg
  • labels/manual.svg
  • labels/other-position.svg
  • scale_date/dates-along-y-default-breaks.svg
  • scale_date/scale-x-date-breaks-3-weeks.svg
  • scale_date/scale-x-date-breaks-breaks-width-2-weeks.svg
  • scale_date/scale-x-date-labels-date-format-m-d.svg
  • scale_date/scale-x-date-labels-date-format-w-week.svg
  • scale_date/scale-y-date-breaks-3-weeks.svg
  • scale_date/scale-y-date-breaks-breaks-width-2-weeks.svg
  • scales-breaks-labels/character.svg
  • scales-breaks-labels/date.svg
  • scales-breaks-labels/no-alpha-breaks-no-legend.svg
  • scales-breaks-labels/no-colour-breaks-no-legend.svg
  • scales-breaks-labels/no-fill-breaks-no-legend.svg
  • scales-breaks-labels/no-size-breaks-no-legend.svg
  • scales-breaks-labels/no-y-breaks.svg
  • scales-breaks-labels/numeric-exp.svg
  • scales-breaks-labels/numeric-log.svg
  • scales-breaks-labels/numeric-polar.svg
  • stat-sum/summary-with-crossbars-manual-grouping.svg
  • stat-sum/summary-with-crossbars-no-grouping.svg
  • theme/axes-styling.svg
  • theme/caption-aligned-to-entire-plot.svg
  • theme/custom-strip-elements-can-render.svg
  • theme/height-is-3-times-width-2-column-facets.svg
  • theme/height-is-3-times-width-2-row-facets.svg
  • theme/height-is-3-times-width-2-wrap-facets.svg
  • theme/height-is-3-times-width-2x2-facets.svg
  • theme/height-is-3-times-width.svg
  • theme/rotated-x-axis-tick-labels.svg
  • theme/strip-styling.svg
  • theme/theme-bw-large.svg
  • theme/theme-bw.svg
  • theme/theme-classic-large.svg
  • theme/theme-classic.svg
  • theme/theme-dark-large.svg
  • theme/theme-dark.svg
  • theme/theme-gray-large.svg
  • theme/theme-gray.svg
  • theme/theme-light-large.svg
  • theme/theme-light.svg
  • theme/theme-linedraw-large.svg
  • theme/theme-linedraw.svg
  • theme/theme-minimal-large.svg
  • theme/theme-minimal.svg
  • theme/theme-void-large.svg
  • theme/theme-void.svg
  • theme/ticks-length.svg
  • theme/titles-aligned-to-entire-plot.svg
  • theme/width-is-3-times-height.svg
  Error: Test failures
  Execution halted