Running 'testthat.R' [41s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 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"
  [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"
  == Skipped tests ===============================================================
  * passes when validate_params=FALSE (1)
  * passes when validate_params=TRUE (2)
  
  == Failed tests ================================================================
  -- Error (test-compiler-animation.R:33:3): tornado animation frames correct ----
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(tornado.anim, open.browser = FALSE) test-compiler-animation.R:33:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-animation.R:57:3): WorldBank animation frames correct --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(motion, open.browser = FALSE) test-compiler-animation.R:57:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-animation.R:103:3): tornado animation frames correct ---
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(evolution, open.browser = FALSE) test-compiler-animation.R:103:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Failure (test-compiler-errors.R:11:3): aes(showSelected=var1, showSelected2=var2) is an error --
  `{ ... }` threw an error with unexpected message.
  Expected match: "Use of clickSelects and showSelected as aesthetics has been deprecated. Please use as parameters"
  Actual message: "'unitType' is not an exported object from 'namespace:grid'"
  Backtrace:
       x
    1. +-testthat::expect_error(...) test-compiler-errors.R:11:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-errors.R:12:4
    7.   \-animint2::parsePlot(meta, p, list.name)
    8.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
    9.       +-grid::unitType(pt_value) %in% c("pt", "points")
   10.       \-grid::unitType
   11.         \-base::getExportedValue(pkg, name)
  -- Failure (test-compiler-errors.R:23:3): informative error for time option with no showSelected --
  `{ ... }` threw an error with unexpected message.
  Expected match: "no interactive aes for time variable Species"
  Actual message: "'unitType' is not an exported object from 'namespace:grid'"
  Backtrace:
       x
    1. +-testthat::expect_error(...) test-compiler-errors.R:23:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-errors.R:24:4
    7.   \-animint2::parsePlot(meta, p, list.name)
    8.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
    9.       +-grid::unitType(pt_value) %in% c("pt", "points")
   10.       \-grid::unitType
   11.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:36:3): no error for time option with clickSelects --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-errors.R:36:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:48:3): no error for time option with showSelected --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-errors.R:48:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:59:3): no error for time option with color ----
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-errors.R:59:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:83:3): no warning for no duration vars --------
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
       x
    1. +-animint2:::expect_no_warning(...) test-compiler-errors.R:83:2
    2. | \-testthat::expect_warning(object, NA) d:\RCompile\CRANpkg\local\3.6\animint2.Rcheck\tests\testthat\helper-functions.R:214:2
    3. |   \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-animint2::animint2dir(viz.no.duration, open.browser = FALSE) test-compiler-errors.R:84:4
    8.   \-animint2::parsePlot(meta, p, list.name)
    9.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   10.       +-grid::unitType(pt_value) %in% c("pt", "points")
   11.       \-grid::unitType
   12.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:91:3): warn no key for geom_text with showSelected=duration var --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
       x
    1. +-testthat::expect_warning(...) test-compiler-errors.R:91:2
    2. | \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-animint2::animint2dir(viz.duration, open.browser = FALSE) test-compiler-errors.R:92:4
    7.   \-animint2::parsePlot(meta, p, list.name)
    8.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
    9.       +-grid::unitType(pt_value) %in% c("pt", "points")
   10.       \-grid::unitType
   11.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:116:3): no warning when key specified ---------
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
       x
    1. +-animint2:::expect_no_warning(...) test-compiler-errors.R:116:2
    2. | \-testthat::expect_warning(object, NA) d:\RCompile\CRANpkg\local\3.6\animint2.Rcheck\tests\testthat\helper-functions.R:214:2
    3. |   \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-animint2::animint2dir(viz.key.duration, open.browser = FALSE) test-compiler-errors.R:117:4
    8.   \-animint2::parsePlot(meta, p, list.name)
    9.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   10.       +-grid::unitType(pt_value) %in% c("pt", "points")
   11.       \-grid::unitType
   12.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:145:3): warning for position=stack and showSelected --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
       x
    1. +-testthat::expect_warning(...) test-compiler-errors.R:145:2
    2. | \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-animint2::animint2dir(complicated, open.browser = FALSE) test-compiler-errors.R:146:4
    7.   \-animint2::parsePlot(meta, p, list.name)
    8.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
    9.       +-grid::unitType(pt_value) %in% c("pt", "points")
   10.       \-grid::unitType
   11.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-errors.R:170:3): no warning for position=stack without showSelected --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
       x
    1. +-animint2:::expect_no_warning(...) test-compiler-errors.R:170:2
    2. | \-testthat::expect_warning(object, NA) d:\RCompile\CRANpkg\local\3.6\animint2.Rcheck\tests\testthat\helper-functions.R:214:2
    3. |   \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-animint2::animint2dir(no.show, open.browser = FALSE) test-compiler-errors.R:171:4
    8.   \-animint2::parsePlot(meta, p, list.name)
    9.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   10.       +-grid::unitType(pt_value) %in% c("pt", "points")
   11.       \-grid::unitType
   12.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-geom-line-path.R:125:1): (code run outside of `test_that()`) --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(mmir.selection, tdir, open.browser = FALSE) test-compiler-geom-line-path.R:125:0
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-plot-named-timexxx.R:29:3): plot named timeSeries is OK without time option list --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-plot-named-timexxx.R:29:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-plot-named-timexxx.R:36:3): plot named timeSeries is OK with time option list --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz.time, open.browser = FALSE) test-compiler-plot-named-timexxx.R:36:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Failure (test-compiler-plot-names.R:7:3): error if we refer to non-existent plot names --
  `{ ... }` threw an error with unexpected message.
  Expected match: "no ggplot named foo"
  Actual message: "'unitType' is not an exported object from 'namespace:grid'"
  Backtrace:
       x
    1. +-testthat::expect_error(...) test-compiler-plot-names.R:7:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. +-base::suppressWarnings(animint2dir(viz)) test-compiler-plot-names.R:8:4
    7. | \-base::withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
    8. \-animint2::animint2dir(viz)
    9.   \-animint2::parsePlot(meta, p, list.name)
   10.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   11.       +-grid::unitType(pt_value) %in% c("pt", "points")
   12.       \-grid::unitType
   13.         \-base::getExportedValue(pkg, name)
  -- Failure (test-compiler-plot-names.R:11:3): error if we refer to non-existent plot names --
  `{ ... }` threw an error with unexpected message.
  Expected match: "no ggplot named bar"
  Actual message: "'unitType' is not an exported object from 'namespace:grid'"
  Backtrace:
       x
    1. +-testthat::expect_error(...) test-compiler-plot-names.R:11:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. +-base::suppressWarnings(animint2dir(viz)) test-compiler-plot-names.R:12:4
    7. | \-base::withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
    8. \-animint2::animint2dir(viz)
    9.   \-animint2::parsePlot(meta, p, list.name)
   10.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   11.       +-grid::unitType(pt_value) %in% c("pt", "points")
   12.       \-grid::unitType
   13.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-point-fill-numeric.R:19:3): legends are produced -------
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-point-fill-numeric.R:19:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-print.R:11:3): message when out.dir unspecified --------
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
       x
    1. +-testthat::expect_message(...) test-compiler-print.R:11:2
    2. | \-testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. +-base::print(viz) test-compiler-print.R:12:4
    7. \-animint2:::print.animint(viz)
    8.   \-animint2::animint2dir(x, x$out.dir, ...)
    9.     \-animint2::parsePlot(meta, p, list.name)
   10.       \-animint2:::pt.to.lines(theme.pars$panel.margin)
   11.         +-grid::unitType(pt_value) %in% c("pt", "points")
   12.         \-grid::unitType
   13.           \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-print.R:22:3): out.dir option is respected -------------
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. +-base::print(vizout) test-compiler-print.R:22:2
   2. \-animint2:::print.animint(vizout)
   3.   \-animint2::animint2dir(x, x$out.dir, ...)
   4.     \-animint2::parsePlot(meta, p, list.name)
   5.       \-animint2:::pt.to.lines(theme.pars$panel.margin)
   6.         +-grid::unitType(pt_value) %in% c("pt", "points")
   7.         \-grid::unitType
   8.           \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-pt-to-lines.r:8:1): (code run outside of `test_that()`) --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2:::pt.to.lines(theme.pars$panel.margin) test-compiler-pt-to-lines.r:8:0
   2.   +-grid::unitType(pt_value) %in% c("pt", "points")
   3.   \-grid::unitType
   4.     \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-save-separate-chunks.R:64:3): save separate chunks for geom_polygon --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE) test-compiler-save-separate-chunks.R:64:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-save-separate-chunks.R:115:3): save separate chunks for geom_point without specifying group --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE) test-compiler-save-separate-chunks.R:115:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-save-separate-chunks.R:234:3): save separate chunks for non-spatial geoms with repetitive field, multiple vars selected, and NAs --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE) test-compiler-save-separate-chunks.R:234:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-save-separate-chunks.R:311:3): save separate chunks for non-spatial geoms with nest_order not being group --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE) test-compiler-save-separate-chunks.R:311:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-selectors.R:22:3): first options are copied to selectors --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(gapminder, open.browser = FALSE) test-compiler-selectors.R:22:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-stat-summary.R:10:3): stat_summary does not infinitely recurse --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(L, open.browser = FALSE) test-compiler-stat-summary.R:10:2
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  -- Failure (test-compiler-tallrect.R:17:3): informative error for empty data table --
  `{ ... }` threw an error with unexpected message.
  Expected match: "no data in geom1_tallrect_gg"
  Actual message: "'unitType' is not an exported object from 'namespace:grid'"
  Backtrace:
       x
    1. +-testthat::expect_error(...) test-compiler-tallrect.R:17:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-animint2::animint2dir(viz, open.browser = FALSE) test-compiler-tallrect.R:18:4
    7.   \-animint2::parsePlot(meta, p, list.name)
    8.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
    9.       +-grid::unitType(pt_value) %in% c("pt", "points")
   10.       \-grid::unitType
   11.         \-base::getExportedValue(pkg, name)
  -- Error (test-compiler-unlink-previous.R:13:1): (code run outside of `test_that()`) --
  Error: 'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
      x
   1. \-animint2::animint2dir(viz, out.dir, open.browser = FALSE) test-compiler-unlink-previous.R:13:0
   2.   \-animint2::parsePlot(meta, p, list.name)
   3.     \-animint2:::pt.to.lines(theme.pars$panel.margin)
   4.       +-grid::unitType(pt_value) %in% c("pt", "points")
   5.       \-grid::unitType
   6.         \-base::getExportedValue(pkg, name)
  
  [ FAIL 30 | WARN 2 | SKIP 3 | PASS 697 ]
  Error: Test failures
  Execution halted