Running ‘testthat.R’ [25s/99s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > .libPaths()
  [1] "/data/gannet/ripley/R/packages/tests-devel/ggstance.Rcheck"
  [2] "/data/gannet/ripley/R/test-4.0"                            
  [3] "/data/gannet/ripley/R/R-devel/library"                     
  > library("testthat")
  > library("ggstance")
  > 
  > test_check("ggstance")
  ── 1. Failure: flipped geoms have correct `required_aes` failure messages (@test
  `ggplot_build(p)` threw an error with unexpected message.
  Expected match: "y, xmin, xmax$"
  Actual message: "geom_linerangeh requires the following missing aesthetics: y, xmin and xmax"
  Backtrace:
    1. testthat::expect_error(ggplot_build(p), "y, xmin, xmax$")
    7. ggplot2:::ggplot_build.ggplot(p)
    8. ggplot2:::by_layer(function(l, d) l$compute_geom_1(d))
    9. ggplot2:::f(l = layers[[i]], d = data[[i]])
   10. l$compute_geom_1(d)
   11. ggplot2:::f(..., self = self)
   12. ggplot2:::check_required_aesthetics(...)
  
  ── 2. Failure: geom_linerangeh() flips (@test-geoms.R#7)  ──────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 7 string mismatches
  Component 1: Length mismatch: comparison on first 10 components
  Component 1: Component 4: Modes: logical, numeric
  Component 1: Component 4: Attributes: < target is NULL, current is list >
  Component 1: Component 4: target is logical, current is numeric
  Component 1: Component 5: Attributes: < Modes: list, NULL >
  Component 1: Component 5: Attributes: < Lengths: 1, 0 >
  Component 1: Component 5: Attributes: < names for target but not for current >
  Component 1: Component 5: Attributes: < current is not list-like >
  ...
  
  ── 3. Failure: geom_pointangeh() flips (@test-geoms.R#13)  ─────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: Attributes: < target is NULL, current is list >
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Attributes: < Modes: list, NULL >
  Component 1: Component 6: Attributes: < Lengths: 1, 0 >
  Component 1: Component 6: Attributes: < names for target but not for current >
  Component 1: Component 6: Attributes: < current is not list-like >
  ...
  
  ── 4. Failure: geom_pointangeh() flips (@test-geoms.R#19)  ─────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: Attributes: < target is NULL, current is list >
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Attributes: < Modes: list, NULL >
  Component 1: Component 6: Attributes: < Lengths: 1, 0 >
  Component 1: Component 6: Attributes: < names for target but not for current >
  Component 1: Component 6: Attributes: < current is not list-like >
  ...
  
  ── 5. Failure: geom_pointangeh() flips (@test-geoms.R#25)  ─────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 11 string mismatches
  Component 1: Length mismatch: comparison on first 15 components
  Component 1: Component 3: 4 string mismatches
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Mean relative difference: 0.6666667
  Component 1: Component 7: Mean relative difference: 18
  Component 1: Component 8: Mean relative difference: 0.9736842
  Component 1: Component 9: Mean relative difference: 1
  ...
  
  ── 6. Failure: geom_crossbarh() flips (@test-geoms.R#31)  ──────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: Attributes: < target is NULL, current is list >
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Attributes: < Modes: list, NULL >
  Component 1: Component 6: Attributes: < Lengths: 1, 0 >
  Component 1: Component 6: Attributes: < names for target but not for current >
  Component 1: Component 6: Attributes: < current is not list-like >
  ...
  
  ── 7. Failure: geom_errorbarh() flips (@test-geoms.R#37)  ──────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 10 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 4: Modes: logical, numeric
  Component 1: Component 4: Attributes: < target is NULL, current is list >
  Component 1: Component 4: target is logical, current is numeric
  Component 1: Component 5: Attributes: < Modes: list, NULL >
  Component 1: Component 5: Attributes: < Lengths: 1, 0 >
  Component 1: Component 5: Attributes: < names for target but not for current >
  Component 1: Component 5: Attributes: < current is not list-like >
  ...
  
  ── 8. Failure: geom_barh() flips (@test-geoms.R#45)  ───────────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 3: 4 string mismatches
  Component 1: Component 4: 4 string mismatches
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Mean relative difference: 0.6666667
  Component 1: Component 7: Mean relative difference: 0.5
  Component 1: Component 8: Mean relative difference: 5.5
  ...
  
  ── 9. Failure: geom_barh() flips (@test-geoms.R#51)  ───────────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Mean relative difference: 0.5
  Component 1: Component 7: Mean relative difference: 0.5
  Component 1: Component 8: Mean relative difference: 5.5
  Component 1: Component 10: Mean relative difference: 1
  Component 1: Component 11: Mean absolute difference: 1.5
  ...
  
  ── 10. Failure: geom_barh() flips (@test-geoms.R#55)  ──────────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 10 string mismatches
  Component 1: Length mismatch: comparison on first 15 components
  Component 1: Component 6: Modes: logical, numeric
  Component 1: Component 6: target is logical, current is numeric
  Component 1: Component 7: Mean relative difference: 0.7777778
  Component 1: Component 9: Mean relative difference: 0.5
  Component 1: Component 10: Mean relative difference: 65.85714
  Component 1: Component 12: Mean relative difference: 1
  Component 1: Component 13: Mean absolute difference: 4
  ...
  
  ── 11. Failure: geom_colh() flips (@test-geoms.R#62)  ──────────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Mean relative difference: 0.6
  Component 1: Component 7: Mean relative difference: 0.5
  Component 1: Component 8: Mean relative difference: 3.933333
  Component 1: Component 10: Mean relative difference: 1
  Component 1: Component 11: Mean absolute difference: 2
  ...
  
  ── 12. Failure: geom_histogramh() flips (@test-geoms.R#68)  ────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 11 string mismatches
  Component 1: Length mismatch: comparison on first 17 components
  Component 1: Component 7: Modes: logical, numeric
  Component 1: Component 7: target is logical, current is numeric
  Component 1: Component 8: Mean relative difference: 2
  Component 1: Component 9: Mean relative difference: 0.7160494
  Component 1: Component 11: Mean relative difference: 0.875
  Component 1: Component 12: Mean relative difference: 5.8
  Component 1: Component 14: Mean relative difference: 1
  ...
  
  ── 13. Failure: geom_histogramh() flips (@test-geoms.R#72)  ────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 11 string mismatches
  Component 1: Length mismatch: comparison on first 17 components
  Component 1: Component 4: Mean relative difference: 1.5
  Component 1: Component 5: Mean relative difference: 1.437229
  Component 1: Component 6: 20 string mismatches
  Component 1: Component 7: Modes: logical, numeric
  Component 1: Component 7: target is logical, current is numeric
  Component 1: Component 8: Mean relative difference: 0.6
  Component 1: Component 9: Mean relative difference: 0.8782051
  ...
  
  ── 14. Failure: geom_histogramh() flips (@test-geoms.R#76)  ────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 11 string mismatches
  Component 1: Length mismatch: comparison on first 17 components
  Component 1: Component 7: Modes: logical, numeric
  Component 1: Component 7: target is logical, current is numeric
  Component 1: Component 8: Mean relative difference: 0.6
  Component 1: Component 9: Mean relative difference: 0.9213836
  Component 1: Component 11: Mean relative difference: 2.373134
  Component 1: Component 12: Mean relative difference: 1.5
  Component 1: Component 14: Mean relative difference: 1
  ...
  
  ── 15. Failure: geom_violinh() flips (@test-geoms.R#82)  ───────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 14 string mismatches
  Component 1: Length mismatch: comparison on first 20 components
  Component 1: Component 4: Mean relative difference: 0.4956922
  Component 1: Component 5: Mean relative difference: 0.8700024
  Component 1: Component 6: 2048 string mismatches
  Component 1: Component 7: Modes: logical, numeric
  Component 1: Component 7: target is logical, current is numeric
  Component 1: Component 8: Modes: numeric, character
  Component 1: Component 8: target is numeric, current is character
  ...
  
  ── 16. Failure: geom_violinh() flips (@test-geoms.R#86)  ───────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 14 string mismatches
  Component 1: Length mismatch: comparison on first 20 components
  Component 1: Component 4: Mean relative difference: 0.4760807
  Component 1: Component 5: Mean relative difference: 1.16514
  Component 1: Component 6: 1024 string mismatches
  Component 1: Component 7: Modes: logical, numeric
  Component 1: Component 7: target is logical, current is numeric
  Component 1: Component 8: Modes: numeric, character
  Component 1: Component 8: target is numeric, current is character
  ...
  
  ── 17. Failure: geom_violinh() flips (@test-geoms.R#94)  ───────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 14 string mismatches
  Component 1: Length mismatch: comparison on first 20 components
  Component 1: Component 7: Modes: logical, numeric
  Component 1: Component 7: target is logical, current is numeric
  Component 1: Component 8: Modes: numeric, character
  Component 1: Component 8: target is numeric, current is character
  Component 1: Component 9: Modes: character, numeric
  Component 1: Component 9: target is character, current is numeric
  Component 1: Component 10: Mean relative difference: 0.9766499
  ...
  
  ── 18. Failure: facet_grid() with free scales flips (@test-geoms.R#120)  ───────
  `h_data` not identical to `v_data`.
  Component 1: Names: 21 string mismatches
  Component 1: Length mismatch: comparison on first 25 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Modes: numeric, character
  Component 1: Component 6: target is numeric, current is character
  Component 1: Component 7: Modes: character, numeric
  Component 1: Component 7: target is character, current is numeric
  Component 1: Component 8: Mean relative difference: 1.666667
  ...
  
  ── 19. Failure: scale information is preserved (@test-geoms.R#134)  ────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: Attributes: < target is NULL, current is list >
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Attributes: < Modes: list, NULL >
  Component 1: Component 6: Attributes: < Lengths: 1, 0 >
  Component 1: Component 6: Attributes: < names for target but not for current >
  Component 1: Component 6: Attributes: < current is not list-like >
  ...
  
  ── 20. Failure: position_dodge() flips (@test-positions.R#10)  ─────────────────
  `h_data` not identical to `v_data`.
  Component 1: Component 5: Mean relative difference: 0.6666667
  Component 1: Component 9: Mean relative difference: 0.6627297
  Component 1: Component 10: Mean relative difference: 0.6627297
  Component 1: Component 11: Mean relative difference: 0.3898574
  Component 1: Component 12: Mean relative difference: 0.3819876
  Component 1: Component 13: Mean relative difference: 0.3980583
  
  ── 21. Failure: position_jitterdodge() flips (@test-positions.R#20)  ───────────
  `h_data` not identical to `v_data`.
  Component 1: Component 3: 78 string mismatches
  Component 1: Component 5: Mean relative difference: 0.5379913
  Component 1: Component 9: Mean relative difference: 0.4427536
  Component 1: Component 10: Mean relative difference: 0.4427536
  Component 1: Component 11: Mean relative difference: 0.3479362
  Component 1: Component 12: Mean relative difference: 0.337199
  Component 1: Component 13: Mean relative difference: 0.3592901
  
  ── 22. Failure: position_stackv() supports `hjust` argument (@test-positions.R#3
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 4: 4 string mismatches
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Mean relative difference: 0.5
  Component 1: Component 7: Mean relative difference: 0.5
  Component 1: Component 8: Mean relative difference: 4.2
  Component 1: Component 9: Mean relative difference: 0.3333333
  ...
  
  ── 23. Failure: stat_summaryh() flips (@test-stats.R#21)  ──────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 13 string mismatches
  Component 1: Length mismatch: comparison on first 17 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Modes: numeric, character
  Component 1: Component 6: target is numeric, current is character
  Component 1: Component 7: Modes: character, numeric
  Component 1: Component 7: target is character, current is numeric
  Component 1: Component 8: Mean relative difference: 0.9736842
  ...
  
  ── 24. Failure: stat_summaryh() flips (@test-stats.R#41)  ──────────────────────
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Mean relative difference: 0.6
  Component 1: Component 7: Mean relative difference: 18
  Component 1: Component 8: Mean relative difference: 0.9736842
  Component 1: Component 9: Mean relative difference: 1
  Component 1: Component 10: Mean relative difference: 19.3
  ...
  
  ── 25. Failure: stat_summaryh() flips, with median_hilow_h summary (@test-stats.
  `h_data` not identical to `v_data`.
  Component 1: Names: 9 string mismatches
  Component 1: Length mismatch: comparison on first 13 components
  Component 1: Component 5: Modes: logical, numeric
  Component 1: Component 5: target is logical, current is numeric
  Component 1: Component 6: Mean relative difference: 0.6
  Component 1: Component 7: Mean relative difference: 18
  Component 1: Component 8: Mean relative difference: 0.9736842
  Component 1: Component 9: Mean relative difference: 1
  Component 1: Component 10: Mean relative difference: 19.3
  ...
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1 | SKIPPED: 28 | WARNINGS: 3 | FAILED: 25 ]
  1. Failure: flipped geoms have correct `required_aes` failure messages (@test-flip.R#6) 
  2. Failure: geom_linerangeh() flips (@test-geoms.R#7) 
  3. Failure: geom_pointangeh() flips (@test-geoms.R#13) 
  4. Failure: geom_pointangeh() flips (@test-geoms.R#19) 
  5. Failure: geom_pointangeh() flips (@test-geoms.R#25) 
  6. Failure: geom_crossbarh() flips (@test-geoms.R#31) 
  7. Failure: geom_errorbarh() flips (@test-geoms.R#37) 
  8. Failure: geom_barh() flips (@test-geoms.R#45) 
  9. Failure: geom_barh() flips (@test-geoms.R#51) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted