Running ‘namespace.R’
  Running ‘testthat.R’ [121s/417s]
Running the tests in ‘tests/namespace.R’ failed.
Complete output:
  > library(animint2)
  > gg <- ggplot(faithfuld, aes(x = waiting, y = eruptions, z = density)) +
  +     geom_contour()
  > print(gg)
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Execution halted
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > data.table::setDTthreads(1)
  > test_check("animint2", filter="compiler")
  Loading required package: animint2
  [1] "aesthetics"
  mapping: x = Sepal.Length, y = Petal.Length 
  geom_point: na.rm = FALSE
  stat_identity: na.rm = FALSE
  position_identity 
  $problem.aes
  [1] "foo"
  
  $data.variables
  [1] "Sepal.Length" "Sepal.Width"  "Petal.Length" "Petal.Width"  "Species"     
  
  [1] "animation"
  [1] "compiler errors"
  mapping: x = letter, y = count, fill = stack, key = key, showSelected1 = facet 
  geom_bar: width = NULL, na.rm = FALSE
  stat_identity: na.rm = FALSE
  position_stack 
  [1] "geom line"
  [1] "plot named timexxx"
  [1] "plot names"
  [1] "geom_point(aes(fill=numeric))"
  [1] "compiler print"
  [1] "pt/points to lines conversion test"
  [1] "save separate chunks"
  [1] "selectors"
  [1] "stat_summary"
  [1] "compiler errors"
  [1] "compiler unlink previous"
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 738 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-compiler-facet-strips.r:32:3'): facet_wrap() builds correct output ──
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(strip_layout(wrap), wrap_expected) at test-compiler-facet-strips.r:32:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─animint2 (local) strip_layout(wrap)
    5.   ├─animint2:::facet_render(...) at test-compiler-facet-strips.r:13:3
    6.   └─animint2:::facet_render.wrap(...)
    7.     ├─animint2:::facet_panels(facet, panel, coord, theme, geom_grobs)
    8.     └─animint2:::facet_panels.wrap(facet, panel, coord, theme, geom_grobs)
    9.       └─base::lapply(...)
   10.         └─animint2 (local) FUN(X[[i]], ...)
   11.           └─coord$render_bg(panel$ranges[[i]], theme)
   12.             └─animint2 (local) f(...)
   13.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   14.                 └─base::setdiff(x.minor, x.major)
   15.                   ├─x[integer()]
   16.                   └─grid:::`[.unit`(x, integer())
  ── Error ('test-compiler-facet-strips.r:45:3'): facet_wrap() switches to 'x' ───
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(strip_layout(wrap_x), wrap_x_expected) at test-compiler-facet-strips.r:45:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─animint2 (local) strip_layout(wrap_x)
    5.   ├─animint2:::facet_render(...) at test-compiler-facet-strips.r:13:3
    6.   └─animint2:::facet_render.wrap(...)
    7.     ├─animint2:::facet_panels(facet, panel, coord, theme, geom_grobs)
    8.     └─animint2:::facet_panels.wrap(facet, panel, coord, theme, geom_grobs)
    9.       └─base::lapply(...)
   10.         └─animint2 (local) FUN(X[[i]], ...)
   11.           └─coord$render_bg(panel$ranges[[i]], theme)
   12.             └─animint2 (local) f(...)
   13.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   14.                 └─base::setdiff(x.minor, x.major)
   15.                   ├─x[integer()]
   16.                   └─grid:::`[.unit`(x, integer())
  ── Error ('test-compiler-facet-strips.r:58:3'): facet_wrap() switches to 'y' ───
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(strip_layout(wrap_y), wrap_y_expected) at test-compiler-facet-strips.r:58:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─animint2 (local) strip_layout(wrap_y)
    5.   ├─animint2:::facet_render(...) at test-compiler-facet-strips.r:13:3
    6.   └─animint2:::facet_render.wrap(...)
    7.     ├─animint2:::facet_panels(facet, panel, coord, theme, geom_grobs)
    8.     └─animint2:::facet_panels.wrap(facet, panel, coord, theme, geom_grobs)
    9.       └─base::lapply(...)
   10.         └─animint2 (local) FUN(X[[i]], ...)
   11.           └─coord$render_bg(panel$ranges[[i]], theme)
   12.             └─animint2 (local) f(...)
   13.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   14.                 └─base::setdiff(x.minor, x.major)
   15.                   ├─x[integer()]
   16.                   └─grid:::`[.unit`(x, integer())
  ── Error ('test-compiler-facet-strips.r:72:3'): facet_grid() builds correct output ──
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(strip_layout(grid), grid_expected) at test-compiler-facet-strips.r:72:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─animint2 (local) strip_layout(grid)
    5.   ├─animint2:::facet_render(...) at test-compiler-facet-strips.r:13:3
    6.   └─animint2:::facet_render.grid(...)
    7.     ├─animint2:::facet_panels(facet, panel, coord, theme, geom_grobs)
    8.     └─animint2:::facet_panels.grid(facet, panel, coord, theme, geom_grobs)
    9.       └─base::lapply(...)
   10.         └─animint2 (local) FUN(X[[i]], ...)
   11.           └─coord$render_bg(panel$ranges[[i]], theme)
   12.             └─animint2 (local) f(...)
   13.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   14.                 └─base::setdiff(x.minor, x.major)
   15.                   ├─x[integer()]
   16.                   └─grid:::`[.unit`(x, integer())
  ── Error ('test-compiler-facet-strips.r:85:3'): facet_grid() switches to 'x' ───
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(strip_layout(grid_x), grid_x_expected) at test-compiler-facet-strips.r:85:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─animint2 (local) strip_layout(grid_x)
    5.   ├─animint2:::facet_render(...) at test-compiler-facet-strips.r:13:3
    6.   └─animint2:::facet_render.grid(...)
    7.     ├─animint2:::facet_panels(facet, panel, coord, theme, geom_grobs)
    8.     └─animint2:::facet_panels.grid(facet, panel, coord, theme, geom_grobs)
    9.       └─base::lapply(...)
   10.         └─animint2 (local) FUN(X[[i]], ...)
   11.           └─coord$render_bg(panel$ranges[[i]], theme)
   12.             └─animint2 (local) f(...)
   13.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   14.                 └─base::setdiff(x.minor, x.major)
   15.                   ├─x[integer()]
   16.                   └─grid:::`[.unit`(x, integer())
  ── Error ('test-compiler-facet-strips.r:98:3'): facet_grid() switches to 'y' ───
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(strip_layout(grid_y), grid_y_expected) at test-compiler-facet-strips.r:98:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─animint2 (local) strip_layout(grid_y)
    5.   ├─animint2:::facet_render(...) at test-compiler-facet-strips.r:13:3
    6.   └─animint2:::facet_render.grid(...)
    7.     ├─animint2:::facet_panels(facet, panel, coord, theme, geom_grobs)
    8.     └─animint2:::facet_panels.grid(facet, panel, coord, theme, geom_grobs)
    9.       └─base::lapply(...)
   10.         └─animint2 (local) FUN(X[[i]], ...)
   11.           └─coord$render_bg(panel$ranges[[i]], theme)
   12.             └─animint2 (local) f(...)
   13.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   14.                 └─base::setdiff(x.minor, x.major)
   15.                   ├─x[integer()]
   16.                   └─grid:::`[.unit`(x, integer())
  ── Error ('test-compiler-facet-strips.r:111:3'): facet_grid() switches to both 'x' and 'y' ──
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(strip_layout(grid_xy), grid_xy_expected) at test-compiler-facet-strips.r:111:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─animint2 (local) strip_layout(grid_xy)
    5.   ├─animint2:::facet_render(...) at test-compiler-facet-strips.r:13:3
    6.   └─animint2:::facet_render.grid(...)
    7.     ├─animint2:::facet_panels(facet, panel, coord, theme, geom_grobs)
    8.     └─animint2:::facet_panels.grid(facet, panel, coord, theme, geom_grobs)
    9.       └─base::lapply(...)
   10.         └─animint2 (local) FUN(X[[i]], ...)
   11.           └─coord$render_bg(panel$ranges[[i]], theme)
   12.             └─animint2 (local) f(...)
   13.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   14.                 └─base::setdiff(x.minor, x.major)
   15.                   ├─x[integer()]
   16.                   └─grid:::`[.unit`(x, integer())
  ── Error ('test-compiler-ggsave.R:10:3'): ggsave creates file ──────────────────
  Error: Cannot create zero-length unit vector ("unit" subsetting)
  Backtrace:
       ▆
    1. └─animint2::ggsave(path, p, device = "pdf", width = 5, height = 5) at test-compiler-ggsave.R:10:3
    2.   ├─grid::grid.draw(plot)
    3.   └─animint2:::grid.draw.gganimintplot(plot)
    4.     ├─base::print(x)
    5.     └─animint2:::print.gganimintplot(x)
    6.       └─animint2::ggplot_gtable(data)
    7.         ├─animint2:::facet_render(...)
    8.         └─animint2:::facet_render.null(...)
    9.           └─coord$render_bg(range, theme)
   10.             └─animint2 (local) f(...)
   11.               └─animint2:::guide_grid(theme, x.minor, x.major, y.minor, y.major)
   12.                 └─base::setdiff(x.minor, x.major)
   13.                   ├─x[integer()]
   14.                   └─grid:::`[.unit`(x, integer())
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 738 ]
  Error: Test failures
  Execution halted