Running ‘testthat.R’ [116s/88s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate)
  > library(iml)
  > 
  > test_check("iml")
  ── 1. Error: FeatureEffect (method=pdp) works for single output and single featu
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(pdp.obj) at testthat/test-FeatureEffect.R:38
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: grid.draw(gtable)
  5: grid.draw.gTree(gtable)
  6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  7: drawGTree(x)
  8: preDraw(x)
  9: preDraw.gTree(x)
  10: pushvpgp(x)
  11: pushgrobvp(x$vp)
  12: pushgrobvp.viewport(x$vp)
  13: pushViewport(vp, recording = FALSE)
  14: lapply(vps, push.vp, recording)
  15: FUN(X[[i]], ...)
  16: push.vp.viewport(X[[i]], ...)
  17: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 2. Error: FeatureEffect (method=pdp) works for single output and 2 features, 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(pdp.obj) at testthat/test-FeatureEffect.R:96
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  7: guides_gengrob(gdefs, theme)
  8: lapply(gdefs, guide_gengrob, theme)
  9: FUN(X[[i]], ...)
  10: guide_gengrob.colorbar(X[[i]], ...)
  ...
  17: pushvpgp(x)
  18: pushgrobvp(x$vp)
  19: pushgrobvp.viewport(x$vp)
  20: pushViewport(vp, recording = FALSE)
  21: lapply(vps, push.vp, recording)
  22: FUN(X[[i]], ...)
  23: push.vp.vpTree(X[[i]], ...)
  24: push.vp(vp$parent, recording)
  25: push.vp.viewport(vp$parent, recording)
  26: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 3. Error: FeatureEffect (method=pdp) works for single output and 2 numerical 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(pdp.obj) at testthat/test-FeatureEffect.R:115
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  7: guides_gengrob(gdefs, theme)
  8: lapply(gdefs, guide_gengrob, theme)
  9: FUN(X[[i]], ...)
  10: guide_gengrob.colorbar(X[[i]], ...)
  ...
  17: pushvpgp(x)
  18: pushgrobvp(x$vp)
  19: pushgrobvp.viewport(x$vp)
  20: pushViewport(vp, recording = FALSE)
  21: lapply(vps, push.vp, recording)
  22: FUN(X[[i]], ...)
  23: push.vp.vpTree(X[[i]], ...)
  24: push.vp(vp$parent, recording)
  25: push.vp.viewport(vp$parent, recording)
  26: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 4. Error: FeatureEffect (method=pdp) works for single output and numerical + 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(pdp.obj) at testthat/test-FeatureEffect.R:132
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  7: guides_gengrob(gdefs, theme)
  8: lapply(gdefs, guide_gengrob, theme)
  9: FUN(X[[i]], ...)
  10: guide_gengrob.legend(X[[i]], ...)
  ...
  17: pushvpgp(x)
  18: pushgrobvp(x$vp)
  19: pushgrobvp.viewport(x$vp)
  20: pushViewport(vp, recording = FALSE)
  21: lapply(vps, push.vp, recording)
  22: FUN(X[[i]], ...)
  23: push.vp.vpTree(X[[i]], ...)
  24: push.vp(vp$parent, recording)
  25: push.vp.viewport(vp$parent, recording)
  26: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 5. Error: FeatureEffect (pdp) works for categorical output (@test-FeatureEffe
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(pdp.obj) at testthat/test-FeatureEffect.R:157
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: grid.draw(gtable)
  5: grid.draw.gTree(gtable)
  6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  7: drawGTree(x)
  8: preDraw(x)
  9: preDraw.gTree(x)
  10: pushvpgp(x)
  11: pushgrobvp(x$vp)
  12: pushgrobvp.viewport(x$vp)
  13: pushViewport(vp, recording = FALSE)
  14: lapply(vps, push.vp, recording)
  15: FUN(X[[i]], ...)
  16: push.vp.viewport(X[[i]], ...)
  17: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 6. Error: FeatureEffect (pdp) works for multiple output (@test-FeatureEffect.
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(pdp.obj) at testthat/test-FeatureEffect.R:171
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: layout$render(geom_grobs, data, theme, plot$labels)
  7: f(..., self = self)
  8: 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)
  9: f(...)
  10: render_strips(structure(labels_df, type = "rows"), structure(labels_df, type = "cols"), 
         params$labeller, theme)
  11: build_strip(x, labeller, theme, TRUE)
  12: ggstrip(grobs, theme, element, gp, horizontal, clip = "on")
  13: Summary.unit(structure(c(4.4, 4.4), unit = 8L, class = c("margin", "unit")), na.rm = FALSE)
  
  ── 7. Error: FeatureEffect (pdp+ice) works for multiple output (@test-FeatureEff
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(pdp.obj) at testthat/test-FeatureEffect.R:184
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: layout$render(geom_grobs, data, theme, plot$labels)
  7: f(..., self = self)
  8: 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)
  9: f(...)
  10: render_strips(structure(labels_df, type = "rows"), structure(labels_df, type = "cols"), 
         params$labeller, theme)
  11: build_strip(x, labeller, theme, TRUE)
  12: ggstrip(grobs, theme, element, gp, horizontal, clip = "on")
  13: Summary.unit(structure(c(4.4, 4.4), unit = 8L, class = c("margin", "unit")), na.rm = FALSE)
  
  ── 8. Error: FeatureEffect (ice) works for single output and single feature (@te
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ice.obj) at testthat/test-FeatureEffect.R:199
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: grid.draw(gtable)
  5: grid.draw.gTree(gtable)
  6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  7: drawGTree(x)
  8: preDraw(x)
  9: preDraw.gTree(x)
  10: pushvpgp(x)
  11: pushgrobvp(x$vp)
  12: pushgrobvp.viewport(x$vp)
  13: pushViewport(vp, recording = FALSE)
  14: lapply(vps, push.vp, recording)
  15: FUN(X[[i]], ...)
  16: push.vp.viewport(X[[i]], ...)
  17: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 9. Error: FeatureEffect (ice) works for multiple output (@test-FeatureEffect.
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ice.obj) at testthat/test-FeatureEffect.R:214
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: layout$render(geom_grobs, data, theme, plot$labels)
  7: f(..., self = self)
  8: 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)
  9: f(...)
  10: render_strips(structure(labels_df, type = "rows"), structure(labels_df, type = "cols"), 
         params$labeller, theme)
  11: build_strip(x, labeller, theme, TRUE)
  12: ggstrip(grobs, theme, element, gp, horizontal, clip = "on")
  13: Summary.unit(structure(c(4.4, 4.4), unit = 8L, class = c("margin", "unit")), na.rm = FALSE)
  
  ── 10. Error: centered FeatureEffect (ice) works for multiple output (@test-Feat
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ice.obj) at testthat/test-FeatureEffect.R:230
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: layout$render(geom_grobs, data, theme, plot$labels)
  7: f(..., self = self)
  8: 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)
  9: f(...)
  10: render_strips(structure(labels_df, type = "rows"), structure(labels_df, type = "cols"), 
         params$labeller, theme)
  11: build_strip(x, labeller, theme, TRUE)
  12: ggstrip(grobs, theme, element, gp, horizontal, clip = "on")
  13: Summary.unit(structure(c(4.4, 4.4), unit = 8L, class = c("margin", "unit")), na.rm = FALSE)
  
  ── 11. Error: method='ale' works for 1D numerical (@test-FeatureEffect.R#258)  ─
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ale) at testthat/test-FeatureEffect.R:258
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: grid.draw(gtable)
  5: grid.draw.gTree(gtable)
  6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  7: drawGTree(x)
  8: preDraw(x)
  9: preDraw.gTree(x)
  10: pushvpgp(x)
  11: pushgrobvp(x$vp)
  12: pushgrobvp.viewport(x$vp)
  13: pushViewport(vp, recording = FALSE)
  14: lapply(vps, push.vp, recording)
  15: FUN(X[[i]], ...)
  16: push.vp.viewport(X[[i]], ...)
  17: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 12. Error: method='ale' works for 2D numerical (@test-FeatureEffect.R#299)  ─
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ale) at testthat/test-FeatureEffect.R:299
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  7: guides_gengrob(gdefs, theme)
  8: lapply(gdefs, guide_gengrob, theme)
  9: FUN(X[[i]], ...)
  10: guide_gengrob.colorbar(X[[i]], ...)
  ...
  17: pushvpgp(x)
  18: pushgrobvp(x$vp)
  19: pushgrobvp.viewport(x$vp)
  20: pushViewport(vp, recording = FALSE)
  21: lapply(vps, push.vp, recording)
  22: FUN(X[[i]], ...)
  23: push.vp.vpTree(X[[i]], ...)
  24: push.vp(vp$parent, recording)
  25: push.vp.viewport(vp$parent, recording)
  26: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 13. Error: method='ale' works for 1D categorical (@test-FeatureEffect.R#392) 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ale) at testthat/test-FeatureEffect.R:392
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: grid.draw(gtable)
  5: grid.draw.gTree(gtable)
  6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  7: drawGTree(x)
  8: preDraw(x)
  9: preDraw.gTree(x)
  10: pushvpgp(x)
  11: pushgrobvp(x$vp)
  12: pushgrobvp.viewport(x$vp)
  13: pushViewport(vp, recording = FALSE)
  14: lapply(vps, push.vp, recording)
  15: FUN(X[[i]], ...)
  16: push.vp.viewport(X[[i]], ...)
  17: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 14. Error: method='ale' works for 2D numerical x categorical (@test-FeatureEf
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ale) at testthat/test-FeatureEffect.R:434
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  7: guides_gengrob(gdefs, theme)
  8: lapply(gdefs, guide_gengrob, theme)
  9: FUN(X[[i]], ...)
  10: guide_gengrob.colorbar(X[[i]], ...)
  ...
  17: pushvpgp(x)
  18: pushgrobvp(x$vp)
  19: pushgrobvp.viewport(x$vp)
  20: pushViewport(vp, recording = FALSE)
  21: lapply(vps, push.vp, recording)
  22: FUN(X[[i]], ...)
  23: push.vp.vpTree(X[[i]], ...)
  24: push.vp(vp$parent, recording)
  25: push.vp.viewport(vp$parent, recording)
  26: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 15. Error: Interaction works for all features (@test-Interaction.R#17)  ─────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(inter.obj) at testthat/test-Interaction.R:17
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: grid.draw(gtable)
  5: grid.draw.gTree(gtable)
  6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  7: drawGTree(x)
  8: preDraw(x)
  9: preDraw.gTree(x)
  10: pushvpgp(x)
  11: pushgrobvp(x$vp)
  12: pushgrobvp.viewport(x$vp)
  13: pushViewport(vp, recording = FALSE)
  14: lapply(vps, push.vp, recording)
  15: FUN(X[[i]], ...)
  16: push.vp.viewport(X[[i]], ...)
  17: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 16. Error: Interaction works for 2-way interactions (@test-Interaction.R#27) 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(inter.obj) at testthat/test-Interaction.R:27
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: grid.draw(gtable)
  5: grid.draw.gTree(gtable)
  6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  7: drawGTree(x)
  8: preDraw(x)
  9: preDraw.gTree(x)
  10: pushvpgp(x)
  11: pushgrobvp(x$vp)
  12: pushgrobvp.viewport(x$vp)
  13: pushViewport(vp, recording = FALSE)
  14: lapply(vps, push.vp, recording)
  15: FUN(X[[i]], ...)
  16: push.vp.viewport(X[[i]], ...)
  17: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ── 17. Error: Interaction for multiclass (@test-Interaction.R#44)  ─────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: checkPlot(ia) at testthat/test-Interaction.R:44
  2: plot(p) at /home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/iml.Rcheck/tests/testthat/helper-predictor.R:39
  3: plot.ggplot(p)
  4: ggplot_gtable(data)
  5: ggplot_gtable.ggplot_built(data)
  6: layout$render(geom_grobs, data, theme, plot$labels)
  7: f(..., self = self)
  8: 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)
  9: f(...)
  10: render_strips(structure(labels_df, type = "rows"), structure(labels_df, type = "cols"), 
         params$labeller, theme)
  11: build_strip(x, labeller, theme, TRUE)
  12: ggstrip(grobs, theme, element, gp, horizontal, clip = "on")
  13: Summary.unit(structure(c(4.4, 4.4), unit = 8L, class = c("margin", "unit")), na.rm = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 423 SKIPPED: 0 FAILED: 17
  1. Error: FeatureEffect (method=pdp) works for single output and single feature (@test-FeatureEffect.R#38) 
  2. Error: FeatureEffect (method=pdp) works for single output and 2 features, 2D grid.size (@test-FeatureEffect.R#96) 
  3. Error: FeatureEffect (method=pdp) works for single output and 2 numerical features, 1D grid.size (@test-FeatureEffect.R#115) 
  4. Error: FeatureEffect (method=pdp) works for single output and numerical + categorical feature (@test-FeatureEffect.R#132) 
  5. Error: FeatureEffect (pdp) works for categorical output (@test-FeatureEffect.R#157) 
  6. Error: FeatureEffect (pdp) works for multiple output (@test-FeatureEffect.R#171) 
  7. Error: FeatureEffect (pdp+ice) works for multiple output (@test-FeatureEffect.R#184) 
  8. Error: FeatureEffect (ice) works for single output and single feature (@test-FeatureEffect.R#199) 
  9. Error: FeatureEffect (ice) works for multiple output (@test-FeatureEffect.R#214) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted