Running ‘testthat.R’ [60s/90s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggplot2)
  > 
  > test_check("ggplot2")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (4)
  ● Skipping on CRAN (106)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-data.r:13:5): stringsAsFactors doesn't affect results ─────────
  'options(stringsAsFactors = TRUE)' is deprecated and will be disabled
  Backtrace:
   1. base::options(stringsAsFactors = TRUE) test-data.r:13:4
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-facet-.r:128:3): facet_grid() accepts vars() ──────────────────
  facet_grid(vars(am, vs)) not equal to facet_grid(am + vs ~ .).
  Component "super": Component "...": target is not list-like
  Component "super": Component "env": Component "rows": Modes: list, call
  Component "super": Component "env": Component "rows": Lengths: 2, 3
  Component "super": Component "env": Component "rows": names for target but not for current
  Component "super": Component "env": Component "rows": Attributes: < Names: 1 string mismatch >
  Component "super": Component "env": Component "rows": Attributes: < Length mismatch: comparison on first 1 components >
  Component "super": Component "env": Component "rows": Attributes: < Component 1: Modes: character, environment >
  Component "super": Component "env": Component "rows": Attributes: < Component 1: Lengths: 2, 1 >
  Component "super": Component "env": Component "rows": Attributes: < Component 1: names for current but not for target >
  ...
  ── Failure (test-facet-.r:129:3): facet_grid() accepts vars() ──────────────────
  facet_grid(vars(am, vs), vars(cyl)) not equal to facet_grid(am + vs ~ cyl).
  Component "super": Component "...": target is not list-like
  Component "super": Component "env": Component "cols": Modes: list, NULL
  Component "super": Component "env": Component "cols": Lengths: 1, 0
  Component "super": Component "env": Component "cols": names for target but not for current
  Component "super": Component "env": Component "cols": Attributes: < Modes: list, NULL >
  Component "super": Component "env": Component "cols": Attributes: < Lengths: 1, 0 >
  Component "super": Component "env": Component "cols": Attributes: < names for target but not for current >
  Component "super": Component "env": Component "cols": Attributes: < current is not list-like >
  Component "super": Component "env": Component "cols": current is not list-like
  ...
  ── Failure (test-facet-.r:130:3): facet_grid() accepts vars() ──────────────────
  facet_grid(NULL, vars(cyl)) not equal to facet_grid(. ~ cyl).
  Component "super": Component "...": target is not list-like
  Component "super": Component "env": Component "cols": Modes: list, NULL
  Component "super": Component "env": Component "cols": Lengths: 1, 0
  Component "super": Component "env": Component "cols": names for target but not for current
  Component "super": Component "env": Component "cols": Attributes: < Modes: list, NULL >
  Component "super": Component "env": Component "cols": Attributes: < Lengths: 1, 0 >
  Component "super": Component "env": Component "cols": Attributes: < names for target but not for current >
  Component "super": Component "env": Component "cols": Attributes: < current is not list-like >
  Component "super": Component "env": Component "cols": current is not list-like
  ...
  ── Failure (test-facet-.r:131:3): facet_grid() accepts vars() ──────────────────
  facet_grid(vars(am, vs), TRUE) not equal to facet_grid(am + vs ~ ., margins = TRUE).
  Component "super": Component "...": target is not list-like
  Component "super": Component "env": Component "rows": Modes: list, call
  Component "super": Component "env": Component "rows": Lengths: 2, 3
  Component "super": Component "env": Component "rows": names for target but not for current
  Component "super": Component "env": Component "rows": Attributes: < Names: 1 string mismatch >
  Component "super": Component "env": Component "rows": Attributes: < Length mismatch: comparison on first 1 components >
  Component "super": Component "env": Component "rows": Attributes: < Component 1: Modes: character, environment >
  Component "super": Component "env": Component "rows": Attributes: < Component 1: Lengths: 2, 1 >
  Component "super": Component "env": Component "rows": Attributes: < Component 1: names for current but not for target >
  ...
  
  [ FAIL 4 | WARN 1 | SKIP 110 | PASS 1394 ]
  Error: Test failures
  Execution halted