Running 'testthat.R' [2s/4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(simplegraph)
  
  Attaching package: 'simplegraph'
  
  The following object is masked from 'package:base':
  
      order
  
  > 
  > test_check("simplegraph")
  == Failed tests ================================================================
  -- Error (test-adjlist.R:76:3): conversion from data frame ---------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-simplegraph:::as_graph_adjlist(g) test-adjlist.R:76:2
   2. \-simplegraph:::as_graph_adjlist.simplegraph_df(g)
   3.   +-utils::modifyList(...)
   4.   | \-base::stopifnot(is.list(x), is.list(val))
   5.   \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-basics.R:10:3): vertex_ids --------------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(vertex_ids(g1), letters[1:5]) test-basics.R:10:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::vertex_ids(g1)
   5.   +-simplegraph:::as_graph_adjlist(graph)
   6.   \-simplegraph:::as_graph_adjlist.simplegraph_df(graph)
   7.     +-utils::modifyList(...)
   8.     | \-base::stopifnot(is.list(x), is.list(val))
   9.     \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-basics.R:54:3): order and size ----------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(order(g1), 5) test-basics.R:54:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::order(g1)
   5.   +-simplegraph:::as_graph_adjlist(graph)
   6.   \-simplegraph:::as_graph_adjlist.simplegraph_df(graph)
   7.     +-utils::modifyList(...)
   8.     | \-base::stopifnot(is.list(x), is.list(val))
   9.     \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-basics.R:68:3): adjacent vertices -------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test-basics.R:68:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::adjacent_vertices(g1)
   5.   +-simplegraph:::as_graph_adjlist(graph)
   6.   \-simplegraph:::as_graph_adjlist.simplegraph_df(graph)
   7.     +-utils::modifyList(...)
   8.     | \-base::stopifnot(is.list(x), is.list(val))
   9.     \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-basics.R:97:3): predecessors and successors ---------------------
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test-basics.R:97:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::predecessors(G)
   5.   +-simplegraph::transpose(graph)
   6.   \-simplegraph:::transpose.simplegraph_adjlist(graph)
   7.     \-base::structure(replicate(length(graph), character()), names = names(graph))
  -- Error (test-basics.R:159:3): degree -----------------------------------------
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test-basics.R:159:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::degree(G, mode = "in")
   5.   +-base::vapply(transpose(graph), length, 1L)
   6.   +-simplegraph::transpose(graph)
   7.   \-simplegraph:::transpose.simplegraph_adjlist(graph)
   8.     \-base::structure(replicate(length(graph), character()), names = names(graph))
  -- Error (test-multigraphs.R:11:3): is_simple ----------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
       x
    1. +-testthat::expect_false(is_simple(g1)) test-multigraphs.R:11:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. \-simplegraph::is_simple(g1)
    5.   \-simplegraph::is_loopy(graph)
    6.     +-simplegraph:::as_graph_adjlist(graph)
    7.     \-simplegraph:::as_graph_adjlist.simplegraph_df(graph)
    8.       +-utils::modifyList(...)
    9.       | \-base::stopifnot(is.list(x), is.list(val))
   10.       \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-multigraphs.R:34:3): is_loopy -----------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_true(is_loopy(g1)) test-multigraphs.R:34:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::is_loopy(g1)
   5.   +-simplegraph:::as_graph_adjlist(graph)
   6.   \-simplegraph:::as_graph_adjlist.simplegraph_df(graph)
   7.     +-utils::modifyList(...)
   8.     | \-base::stopifnot(is.list(x), is.list(val))
   9.     \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-multigraphs.R:57:3): is_multigraph ------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_false(is_multigraph(g1)) test-multigraphs.R:57:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::is_multigraph(g1)
   5.   +-simplegraph:::as_graph_adjlist(graph)
   6.   \-simplegraph:::as_graph_adjlist.simplegraph_df(graph)
   7.     +-utils::modifyList(...)
   8.     | \-base::stopifnot(is.list(x), is.list(val))
   9.     \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-multigraphs.R:80:3): simplify on df -----------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
       x
    1. +-testthat::expect_true(is_simple(simplify(g1))) test-multigraphs.R:80:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. \-simplegraph::is_simple(simplify(g1))
    5.   \-simplegraph::is_loopy(graph)
    6.     +-simplegraph:::as_graph_adjlist(graph)
    7.     \-simplegraph:::as_graph_adjlist.simplegraph_df(graph)
    8.       +-utils::modifyList(...)
    9.       | \-base::stopifnot(is.list(x), is.list(val))
   10.       \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-multigraphs.R:113:3): simplify on adjlist -----------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-simplegraph:::as_graph_adjlist(g1()) test-multigraphs.R:113:2
   2. \-simplegraph:::as_graph_adjlist.simplegraph_df(g1())
   3.   +-utils::modifyList(...)
   4.   | \-base::stopifnot(is.list(x), is.list(val))
   5.   \-base::structure(replicate(nrow(x$nodes), character()), names = x$nodes[[1]])
  -- Error (test-transpose.R:33:3): transposing an adjlist -----------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(g, transpose(transpose(g))) test-transpose.R:33:2
   2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-simplegraph::transpose(transpose(g))
   5. +-simplegraph::transpose(g)
   6. \-simplegraph:::transpose.simplegraph_adjlist(g)
   7.   \-base::structure(replicate(length(graph), character()), names = names(graph))
  -- Error (test-transpose.R:42:3): transposing an empty adjlist -----------------
  Error: 'names' attribute [1] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(g, transpose(transpose(g))) test-transpose.R:42:2
   2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-simplegraph::transpose(transpose(g))
   5. +-simplegraph::transpose(g)
   6. \-simplegraph:::transpose.simplegraph_adjlist(g)
   7.   \-base::structure(replicate(length(graph), character()), names = names(graph))
  -- Error (test-weights.R:42:3): strength ---------------------------------------
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      x
   1. +-testthat::expect_equal(strength(L, mode = "in"), degree(L, mode = "in")) test-weights.R:42:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-simplegraph::strength(L, mode = "in")
   5.   \-simplegraph::degree(graph = graph, mode = mode)
   6.     +-base::vapply(transpose(graph), length, 1L)
   7.     +-simplegraph::transpose(graph)
   8.     \-simplegraph:::transpose.simplegraph_adjlist(graph)
   9.       \-base::structure(replicate(length(graph), character()), names = names(graph))
  
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 74 ]
  Error: Test failures
  Execution halted