Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check("data.tree")
  Loading required package: data.tree
                            levelName    cost
  1  Acme Inc.                             NA
  2   ¦--Accounting                        NA
  3   ¦   ¦--New Software             1000000
  4   ¦   °--New Accounting Standards  500000
  5   ¦--Research                          NA
  6   ¦   ¦--New Product Line         2000000
  7   ¦   °--New Labs                  750000
  8   °--IT                                NA
  9       ¦--Outsource                 400000
  10      ¦--Go agile                  250000
  11      °--Switch to R                50000
    levelName  b             1
  1 Root      NA              
  2  °--a      2              
  3      °--c NA 1, 2, 3, 4, 5
    levelName a
  1     Root   
  2      °--a 2
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • DiagrammeR cannot be loaded (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-draw.R:143:3): grViz names with quotes ──────────────────────────
  Error: Package "DiagrammeR" is required to convert a `data.tree::Node`to a DiagrammeR graph. Please install it.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-draw.R:143:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─data.tree::ToDiagrammeRGraph(mytree)
  ── Error (test-treeConversionigraph.R:6:3): as.Node.igraph undirected ──────────
  Error: there is no package called 'igraph'
  Backtrace:
      █
   1. ├─data.tree::as.igraph.Node(acme, "p", c("level", "isLeaf"), directed = FALSE) test-treeConversionigraph.R:6:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-treeConversionigraph.R:15:3): as.Node.igraph directed ───────────
  Error: there is no package called 'igraph'
  Backtrace:
      █
   1. ├─data.tree::as.igraph.Node(acme, "p", c("level", "isLeaf"), directed = TRUE) test-treeConversionigraph.R:15:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 366 ]
  Error: Test failures
  Execution halted