Running ‘testthat.R’ [9s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > .libPaths()
  [1] "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages"
  [2] "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/library" 
  > library("testthat")
  > library("ggstance")
  > 
  > test_check("ggstance")
  ── 1. Error: geom_linerangeh() flips (@test-geoms.R#7)  ────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_linerangeh()") at testthat/test-geoms.R:7
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 2. Error: geom_pointangeh() flips (@test-geoms.R#13)  ───────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_pointrangeh()") at testthat/test-geoms.R:13
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 3. Error: geom_crossbarh() flips (@test-geoms.R#31)  ────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_crossbarh()") at testthat/test-geoms.R:31
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 4. Error: geom_errorbarh() flips (@test-geoms.R#37)  ────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_errorbarh()") at testthat/test-geoms.R:37
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 5. Error: geom_barh() flips (@test-geoms.R#45)  ─────────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_barh()") at testthat/test-geoms.R:45
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 6. Error: geom_colh() flips (@test-geoms.R#62)  ─────────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_colh()") at testthat/test-geoms.R:62
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: grid.draw(gtable)
  9: grid.draw.gTree(gtable)
  10: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  11: drawGTree(x)
  12: preDraw(x)
  13: preDraw.gTree(x)
  14: pushvpgp(x)
  15: pushgrobvp(x$vp)
  16: pushgrobvp.viewport(x$vp)
  17: pushViewport(vp, recording = FALSE)
  18: lapply(vps, push.vp, recording)
  19: FUN(X[[i]], ...)
  20: push.vp.viewport(X[[i]], ...)
  21: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 7. Error: geom_histogramh() flips (@test-geoms.R#68)  ───────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_histogramh()", TRUE) at testthat/test-geoms.R:68
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: grid.draw(gtable)
  9: grid.draw.gTree(gtable)
  10: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  11: drawGTree(x)
  12: preDraw(x)
  13: preDraw.gTree(x)
  14: pushvpgp(x)
  15: pushgrobvp(x$vp)
  16: pushgrobvp.viewport(x$vp)
  17: pushViewport(vp, recording = FALSE)
  18: lapply(vps, push.vp, recording)
  19: FUN(X[[i]], ...)
  20: push.vp.viewport(X[[i]], ...)
  21: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 8. Error: geom_violinh() flips (@test-geoms.R#82)  ──────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_violinh()") at testthat/test-geoms.R:82
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 9. Error: geom_boxploth() flips (@test-geoms.R#100)  ────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "geom_boxploth()") at testthat/test-geoms.R:100
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: grid.draw(gtable)
  9: grid.draw.gTree(gtable)
  10: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  11: drawGTree(x)
  12: preDraw(x)
  13: preDraw.gTree(x)
  14: pushvpgp(x)
  15: pushgrobvp(x$vp)
  16: pushgrobvp.viewport(x$vp)
  17: pushViewport(vp, recording = FALSE)
  18: lapply(vps, push.vp, recording)
  19: FUN(X[[i]], ...)
  20: push.vp.viewport(X[[i]], ...)
  21: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 10. Error: facet_grid() with free scales flips (@test-geoms.R#119)  ─────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "facet_grid() with free scales") at testthat/test-geoms.R:119
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: layout$render(geom_grobs, data, theme, plot$labels)
  11: f(..., self = self)
  12: self$facet$draw_panels(panels, self$layout, self$panel_scales_x, self$panel_scales_y, 
         self$panel_params, self$coord, data, theme, self$facet_params)
  13: f(...)
  14: render_strips(col_vars, row_vars, params$labeller, theme)
  15: build_strip(x, labeller, theme, TRUE)
  16: ggstrip(grobs, theme, element, gp, horizontal, clip = "on")
  17: Summary.unit(structure(c(4.4, 4.4), unit = 8L, class = c("margin", "unit")), na.rm = FALSE)
  
  ── 11. Error: scale information is preserved (@test-geoms.R#133)  ──────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "scales") at testthat/test-geoms.R:133
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 12. Error: position_dodge() flips (@test-positions.R#10)  ───────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "position-dodge") at testthat/test-positions.R:10
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: grid.draw(gtable)
  9: grid.draw.gTree(gtable)
  10: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  11: drawGTree(x)
  12: preDraw(x)
  13: preDraw.gTree(x)
  14: pushvpgp(x)
  15: pushgrobvp(x$vp)
  16: pushgrobvp.viewport(x$vp)
  17: pushViewport(vp, recording = FALSE)
  18: lapply(vps, push.vp, recording)
  19: FUN(X[[i]], ...)
  20: push.vp.viewport(X[[i]], ...)
  21: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 13. Error: position_jitterdodge() flips (@test-positions.R#20)  ─────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "position-jitterdodge", TRUE) at testthat/test-positions.R:20
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 14. Error: position_stackv() supports `hjust` argument (@test-positions.R#37)
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "position-stackv() with `hjust` argument") at testthat/test-positions.R:37
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: ggplot_gtable(data)
  9: ggplot_gtable.ggplot_built(data)
  10: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  ...
  21: pushvpgp(x)
  22: pushgrobvp(x$vp)
  23: pushgrobvp.viewport(x$vp)
  24: pushViewport(vp, recording = FALSE)
  25: lapply(vps, push.vp, recording)
  26: FUN(X[[i]], ...)
  27: push.vp.vpTree(X[[i]], ...)
  28: push.vp(vp$parent, recording)
  29: push.vp.viewport(vp$parent, recording)
  30: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 15. Error: stat_summaryh() flips (@test-stats.R#21)  ────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "stat_summaryh() with fun.data()") at testthat/test-stats.R:21
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: grid.draw(gtable)
  9: grid.draw.gTree(gtable)
  10: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  11: drawGTree(x)
  12: preDraw(x)
  13: preDraw.gTree(x)
  14: pushvpgp(x)
  15: pushgrobvp(x$vp)
  16: pushgrobvp.viewport(x$vp)
  17: pushViewport(vp, recording = FALSE)
  18: lapply(vps, push.vp, recording)
  19: FUN(X[[i]], ...)
  20: push.vp.viewport(X[[i]], ...)
  21: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 16. Error: stat_summaryh() flips, with median_hilow_h summary (@test-stats.R#
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: check_horizontal(v, h, "stat_summaryh() with median_hilow_h()") at testthat/test-stats.R:50
  2: vdiffr::expect_doppelganger(fig_name, horizontal) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ggstance.Rcheck/tests/testthat/helper-utils.R:21
  3: writer(fig, testcase, title)
  4: print_plot(plot, title)
  5: print_plot.ggplot(plot, title)
  6: print(p)
  7: print.ggplot(p)
  8: grid.draw(gtable)
  9: grid.draw.gTree(gtable)
  10: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  11: drawGTree(x)
  12: preDraw(x)
  13: preDraw.gTree(x)
  14: pushvpgp(x)
  15: pushgrobvp(x$vp)
  16: pushgrobvp.viewport(x$vp)
  17: pushViewport(vp, recording = FALSE)
  18: lapply(vps, push.vp, recording)
  19: FUN(X[[i]], ...)
  20: push.vp.viewport(X[[i]], ...)
  21: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 18 SKIPPED: 0 FAILED: 16
  1. Error: geom_linerangeh() flips (@test-geoms.R#7) 
  2. Error: geom_pointangeh() flips (@test-geoms.R#13) 
  3. Error: geom_crossbarh() flips (@test-geoms.R#31) 
  4. Error: geom_errorbarh() flips (@test-geoms.R#37) 
  5. Error: geom_barh() flips (@test-geoms.R#45) 
  6. Error: geom_colh() flips (@test-geoms.R#62) 
  7. Error: geom_histogramh() flips (@test-geoms.R#68) 
  8. Error: geom_violinh() flips (@test-geoms.R#82) 
  9. Error: geom_boxploth() flips (@test-geoms.R#100) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted