Running ‘testthat.R’ [49s/49s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(simmer.plot)
  Loading required package: simmer
  Loading required package: ggplot2
  > 
  > test_check("simmer.plot")
  1. Failure: a simple trajectory is correctly converted to graph (@test-plot-trajectory.R#28) 
  all(graph$nodes_df$label == name) isn't true.
  
  
  2. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#34) 
  all(graph$nodes_df$label == name) isn't true.
  
  
  3. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#34) 
  all(graph$edges_df$from == from) isn't true.
  
  
  4. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#34) 
  all(graph$edges_df$to == to) isn't true.
  
  
  5. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#35) 
  all(graph$nodes_df$label == name) isn't true.
  
  
  6. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#35) 
  all(graph$edges_df$from == from) isn't true.
  
  
  7. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#35) 
  all(graph$edges_df$to == to) isn't true.
  
  
  8. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#36) 
  all(graph$nodes_df$label == name) isn't true.
  
  
  9. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#36) 
  all(graph$edges_df$from == from) isn't true.
  
  
  10. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#36) 
  all(graph$edges_df$to == to) isn't true.
  
  
  11. Error: a complex trajectory is correctly converted to graph (@test-plot-trajectory.R#65) 
  replacement has 1 row, data has 0
  1: test_graph(x, c("Seize", "Branch", "Clone", "Seize", "Timeout", "Release", "Trap", 
         "Timeout", "Timeout", "SetAttribute", "Seize", "Timeout", "Release", "Release", 
         "Rollback", "Synchronize", "Rollback", "Release"), c(1, 2, 3, 4, 5, 6, 7, 9, 
         10, 11, 12, 13, 14, 16, 17, 2, 3, 3, 7, 2, 15, 17), c(2, 16, 16, 5, 6, 16, 9, 
         16, 11, 12, 13, 14, 15, 17, 18, 3, 4, 7, 8, 10, 1, 2)) at testthat/test-plot-trajectory.R:65
  2: expect_true(inherits(plot(x), "htmlwidget")) at testthat/test-plot-trajectory.R:4
  3: expect(identical(as.vector(object), TRUE), sprintf("%s isn't true.", lab), info = info)
  4: as.expectation(exp, ..., srcref = srcref)
  5: identical(as.vector(object), TRUE)
  6: as.vector(object)
  7: inherits(plot(x), "htmlwidget")
  8: plot(x)
  9: plot.trajectory(x)
  10: trajectory_graph(x, fill) %>% DiagrammeR::set_global_graph_attrs("layout", engine, 
         "graph") %>% DiagrammeR::add_global_graph_attrs("fontname", "sans-serif", "node") %>% 
         DiagrammeR::add_global_graph_attrs("width", 1.5, "node") %>% DiagrammeR::render_graph(...)
  11: eval(lhs, parent, parent)
  12: eval(expr, envir, enclos)
  13: trajectory_graph(x, fill)
  14: `$<-`(`*tmp*`, "color", value = "grey")
  15: `$<-.data.frame`(`*tmp*`, "color", value = "grey")
  16: stop(sprintf(ngettext(N, "replacement has %d row, data has %d", "replacement has %d rows, data has %d"), 
         N, nrows), domain = NA)
  
  testthat results ================================================================
  OK: 63 SKIPPED: 0 FAILED: 11
  1. Failure: a simple trajectory is correctly converted to graph (@test-plot-trajectory.R#28) 
  2. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#34) 
  3. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#34) 
  4. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#34) 
  5. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#35) 
  6. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#35) 
  7. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#35) 
  8. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#36) 
  9. Failure: a rollback with variable amount is correctly converted to graph (@test-plot-trajectory.R#36) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted