Running ‘testthat.R’ [55s/45s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggetho)
  Loading required package: ggplot2
  Loading required package: behavr
  Loading required package: data.table
  > 
  > test_check("ggetho")
  ── 1. Error: geom_peak works (@test-geom_peak.R#20)  ───────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: print(out) at testthat/test-geom_peak.R:20
  2: print.ggplot(out)
  3: ggplot_gtable(data)
  4: ggplot_gtable.ggplot_built(data)
  5: layout$render(geom_grobs, data, theme, plot$labels)
  6: f(..., self = self)
  7: 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)
  8: f(...)
  9: render_strips(structure(labels_df, type = "rows"), structure(labels_df, type = "cols"), 
         params$labeller, theme)
  10: build_strip(x, labeller, theme, TRUE)
  11: ggstrip(grobs, theme, element, gp, horizontal, clip = "on")
  12: Summary.unit(structure(c(4.4, 4.4), unit = 8L, class = c("margin", "unit")), na.rm = FALSE)
  
  ── 2. Error: ggperio works (@test-ggperio.R#9)  ────────────────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: print(out) at testthat/test-ggperio.R:9
  2: print.ggplot(out)
  3: ggplot_gtable(data)
  4: ggplot_gtable.ggplot_built(data)
  5: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  6: guides_gengrob(gdefs, theme)
  7: lapply(gdefs, guide_gengrob, theme)
  8: FUN(X[[i]], ...)
  9: guide_gengrob.legend(X[[i]], ...)
  10: width_cm(grob.title)
  ...
  16: pushvpgp(x)
  17: pushgrobvp(x$vp)
  18: pushgrobvp.viewport(x$vp)
  19: pushViewport(vp, recording = FALSE)
  20: lapply(vps, push.vp, recording)
  21: FUN(X[[i]], ...)
  22: push.vp.vpTree(X[[i]], ...)
  23: push.vp(vp$parent, recording)
  24: push.vp.viewport(vp$parent, recording)
  25: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 36 SKIPPED: 1 FAILED: 2
  1. Error: geom_peak works (@test-geom_peak.R#20) 
  2. Error: ggperio works (@test-ggperio.R#9) 
  
  Error: testthat unit tests failed
  Execution halted