Running 'testthat.R' [32s]
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. Error: tornado animation frames correct (@test-compiler-animation.R#33)  -
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(tornado.anim, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 2. Error: WorldBank animation frames correct (@test-compiler-animation.R#57) 
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(motion, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 3. Error: tornado animation frames correct (@test-compiler-animation.R#103)  
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(evolution, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  [1] "compiler errors"
  -- 4. Failure: aes(showSelected=var1, showSelected2=var2) is an error (@test-com
  `{ ... }` 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:
    1. testthat::expect_error(...)
    6. animint2::animint2dir(viz, open.browser = FALSE)
    7. animint2::parsePlot(meta, p, list.name)
    8. animint2:::pt.to.lines(theme.pars$panel.margin)
   10. grid::unitType
   11. base::getExportedValue(pkg, name)
  
  -- 5. Failure: informative error for time option with no showSelected (@test-com
  `{ ... }` 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:
    1. testthat::expect_error(...)
    6. animint2::animint2dir(viz, open.browser = FALSE)
    7. animint2::parsePlot(meta, p, list.name)
    8. animint2:::pt.to.lines(theme.pars$panel.margin)
   10. grid::unitType
   11. base::getExportedValue(pkg, name)
  
  -- 6. Error: no error for time option with clickSelects (@test-compiler-errors.R
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 7. Error: no error for time option with showSelected (@test-compiler-errors.R
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 8. Error: no error for time option with color (@test-compiler-errors.R#59)  -
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 9. Error: no warning for no duration vars (@test-compiler-errors.R#83)  -----
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
    1. animint2:::expect_no_warning(...)
    7. animint2::animint2dir(viz.no.duration, open.browser = FALSE)
    8. animint2::parsePlot(meta, p, list.name)
    9. animint2:::pt.to.lines(theme.pars$panel.margin)
   11. grid::unitType
   12. base::getExportedValue(pkg, name)
  
  -- 10. Error: warn no key for geom_text with showSelected=duration var (@test-co
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
    1. testthat::expect_warning(...)
    6. animint2::animint2dir(viz.duration, open.browser = FALSE)
    7. animint2::parsePlot(meta, p, list.name)
    8. animint2:::pt.to.lines(theme.pars$panel.margin)
   10. grid::unitType
   11. base::getExportedValue(pkg, name)
  
  -- 11. Error: no warning when key specified (@test-compiler-errors.R#116)  -----
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
    1. animint2:::expect_no_warning(...)
    7. animint2::animint2dir(viz.key.duration, open.browser = FALSE)
    8. animint2::parsePlot(meta, p, list.name)
    9. animint2:::pt.to.lines(theme.pars$panel.margin)
   11. grid::unitType
   12. base::getExportedValue(pkg, name)
  
  -- 12. Error: warning for position=stack and showSelected (@test-compiler-errors
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
    1. testthat::expect_warning(...)
    6. animint2::animint2dir(complicated, open.browser = FALSE)
    7. animint2::parsePlot(meta, p, list.name)
    8. animint2:::pt.to.lines(theme.pars$panel.margin)
   10. grid::unitType
   11. base::getExportedValue(pkg, name)
  
  -- 13. Error: no warning for position=stack without showSelected (@test-compiler
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
    1. animint2:::expect_no_warning(...)
    7. animint2::animint2dir(no.show, open.browser = FALSE)
    8. animint2::parsePlot(meta, p, list.name)
    9. animint2:::pt.to.lines(theme.pars$panel.margin)
   11. grid::unitType
   12. base::getExportedValue(pkg, name)
  
  [1] "geom line"
  -- 14. Error: (unknown) (@test-compiler-geom-line-path.R#125)  -----------------
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(mmir.selection, tdir, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  [1] "plot named timexxx"
  -- 15. Error: plot named timeSeries is OK without time option list (@test-compil
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 16. Error: plot named timeSeries is OK with time option list (@test-compiler-
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz.time, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  [1] "plot names"
  -- 17. Failure: error if we refer to non-existent plot names (@test-compiler-plo
  `{ ... }` threw an error with unexpected message.
  Expected match: "no ggplot named foo"
  Actual message: "'unitType' is not an exported object from 'namespace:grid'"
  Backtrace:
    1. testthat::expect_error(...)
    8. animint2::animint2dir(viz)
    9. animint2::parsePlot(meta, p, list.name)
   10. animint2:::pt.to.lines(theme.pars$panel.margin)
   12. grid::unitType
   13. base::getExportedValue(pkg, name)
  
  -- 18. Failure: error if we refer to non-existent plot names (@test-compiler-plo
  `{ ... }` threw an error with unexpected message.
  Expected match: "no ggplot named bar"
  Actual message: "'unitType' is not an exported object from 'namespace:grid'"
  Backtrace:
    1. testthat::expect_error(...)
    8. animint2::animint2dir(viz)
    9. animint2::parsePlot(meta, p, list.name)
   10. animint2:::pt.to.lines(theme.pars$panel.margin)
   12. grid::unitType
   13. base::getExportedValue(pkg, name)
  
  [1] "geom_point(aes(fill=numeric))"
  -- 19. Error: legends are produced (@test-compiler-point-fill-numeric.R#19)  ---
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  [1] "compiler print"
  -- 20. Error: message when out.dir unspecified (@test-compiler-print.R#11)  ----
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
    1. testthat::expect_message(...)
    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)
   12. grid::unitType
   13. base::getExportedValue(pkg, name)
  
  -- 21. Error: out.dir option is respected (@test-compiler-print.R#22)  ---------
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. base::print(vizout)
   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)
   7. grid::unitType
   8. base::getExportedValue(pkg, name)
  
  [1] "pt/points to lines conversion test"
  -- 22. Error: (unknown) (@test-compiler-pt-to-lines.r#8)  ----------------------
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2:::pt.to.lines(theme.pars$panel.margin)
   3. grid::unitType
   4. base::getExportedValue(pkg, name)
  
  [1] "save separate chunks"
  -- 23. Error: save separate chunks for geom_polygon (@test-compiler-save-separat
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 24. Error: save separate chunks for geom_point without specifying group (@tes
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 25. Error: save separate chunks for non-spatial geoms with repetitive field, 
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  -- 26. Error: save separate chunks for non-spatial geoms with nest_order not bei
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, out.dir = out.dir, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  [1] "selectors"
  -- 27. Error: first options are copied to selectors (@test-compiler-selectors.R#
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(gapminder, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  [1] "stat_summary"
  -- 28. Error: stat_summary does not infinitely recurse (@test-compiler-stat-summ
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(L, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  [1] "compiler errors"
  -- 29. Failure: informative error for empty data table (@test-compiler-tallrect.
  `{ ... }` 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:
    1. testthat::expect_error(...)
    6. animint2::animint2dir(viz, open.browser = FALSE)
    7. animint2::parsePlot(meta, p, list.name)
    8. animint2:::pt.to.lines(theme.pars$panel.margin)
   10. grid::unitType
   11. base::getExportedValue(pkg, name)
  
  [1] "compiler unlink previous"
  -- 30. Error: (unknown) (@test-compiler-unlink-previous.R#13)  -----------------
  'unitType' is not an exported object from 'namespace:grid'
  Backtrace:
   1. animint2::animint2dir(viz, out.dir, open.browser = FALSE)
   2. animint2::parsePlot(meta, p, list.name)
   3. animint2:::pt.to.lines(theme.pars$panel.margin)
   5. grid::unitType
   6. base::getExportedValue(pkg, name)
  
  == testthat results  ===========================================================
  [ OK: 697 | SKIPPED: 3 | WARNINGS: 2 | FAILED: 30 ]
  1. Error: tornado animation frames correct (@test-compiler-animation.R#33) 
  2. Error: WorldBank animation frames correct (@test-compiler-animation.R#57) 
  3. Error: tornado animation frames correct (@test-compiler-animation.R#103) 
  4. Failure: aes(showSelected=var1, showSelected2=var2) is an error (@test-compiler-errors.R#11) 
  5. Failure: informative error for time option with no showSelected (@test-compiler-errors.R#23) 
  6. Error: no error for time option with clickSelects (@test-compiler-errors.R#36) 
  7. Error: no error for time option with showSelected (@test-compiler-errors.R#48) 
  8. Error: no error for time option with color (@test-compiler-errors.R#59) 
  9. Error: no warning for no duration vars (@test-compiler-errors.R#83) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted