Running ‘testthat.R’ [10s/17s]
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
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 365 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • DiagrammeR cannot be loaded (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-draw.R:143:3): grViz names with quotes ──────────────────────────
  Error in `ToDiagrammeRGraph(mytree)`: Package "DiagrammeR" is required to convert a `data.tree::Node`to a DiagrammeR graph. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at 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-treeConversionParty.R:7:3): party on ────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'party'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-treeConversionParty.R:7:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-treeConversionParty.R:36:3): partykid ───────────────────────────
  <packageNotFoundError/error/condition>
  Error in `library(partykit)`: there is no package called 'partykit'
  Backtrace:
      ▆
   1. └─base::library(partykit) at test-treeConversionParty.R:36:2
  
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 365 ]
  Error: Test failures
  Execution halted