Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(autoplotly)
  > 
  > test_check("autoplotly")
  ── 1. Error: autoplotly works correctly (@test_all.R#7)  ───────────────────────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: autoplotly(result, data = iris, colour = "Species", label = TRUE, label.size = 3, 
         frame = TRUE) at testthat/test_all.R:7
  2: autoplotly.default(result, data = iris, colour = "Species", label = TRUE, label.size = 3, 
         frame = TRUE)
  3: ggplotly(ggplot_obj, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source)
  4: ggplotly.ggplot(ggplot_obj, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source)
  5: gg2list(p, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source, ...)
  6: unitConvert(theme$plot.margin, "pixels")
  7: grid::convertHeight(u, "npc")
  8: convertUnit(x, unitTo, "y", "dimension", "y", "dimension", valueOnly = valueOnly)
  9: grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), valid.units(unitTo))
  
  ── 2. Error: autoplotly is composable with additional ggplot2 elements (@test_al
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: autoplotly(result, data = iris, colour = "Species", label = TRUE, label.size = 3, 
         frame = TRUE) at testthat/test_all.R:13
  2: autoplotly.default(result, data = iris, colour = "Species", label = TRUE, label.size = 3, 
         frame = TRUE)
  3: ggplotly(ggplot_obj, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source)
  4: ggplotly.ggplot(ggplot_obj, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source)
  5: gg2list(p, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source, ...)
  6: unitConvert(theme$plot.margin, "pixels")
  7: grid::convertHeight(u, "npc")
  8: convertUnit(x, unitTo, "y", "dimension", "y", "dimension", valueOnly = valueOnly)
  9: grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), valid.units(unitTo))
  
  ── 3. Error: autoplotly accepts additional plotly args (@test_all.R#26)  ───────
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: autoplotly(result, data = iris, colour = "Species", label = TRUE, label.size = 3, 
         frame = TRUE, tooltip = "all", dynamicTicks = FALSE, layerData = 1, originalData = TRUE, 
         source = "A") at testthat/test_all.R:26
  2: autoplotly.default(result, data = iris, colour = "Species", label = TRUE, label.size = 3, 
         frame = TRUE, tooltip = "all", dynamicTicks = FALSE, layerData = 1, originalData = TRUE, 
         source = "A")
  3: ggplotly(ggplot_obj, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source)
  4: ggplotly.ggplot(ggplot_obj, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source)
  5: gg2list(p, width = width, height = height, tooltip = tooltip, dynamicTicks = dynamicTicks, 
         layerData = layerData, originalData = originalData, source = source, ...)
  6: unitConvert(theme$plot.margin, "pixels")
  7: grid::convertHeight(u, "npc")
  8: convertUnit(x, unitTo, "y", "dimension", "y", "dimension", valueOnly = valueOnly)
  9: grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), valid.units(unitTo))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1 SKIPPED: 0 FAILED: 3
  1. Error: autoplotly works correctly (@test_all.R#7) 
  2. Error: autoplotly is composable with additional ggplot2 elements (@test_all.R#13) 
  3. Error: autoplotly accepts additional plotly args (@test_all.R#26) 
  
  Error: testthat unit tests failed
  Execution halted