Running ‘testthat.R’ [9s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("data.tree")
  Loading required package: data.tree
  ── 1. Error: grViz (@test-draw.R#44)  ──────────────────────────────────────────
  not a function
  Backtrace:
    1. data.tree::ToDiagrammeRGraph(...)
    3. data.tree::ToDataFrameNetwork(...)
    4. data.tree::ToDataFrameTree(...)
    6. data.tree:::as.data.frame.Node(...)
    7. data.tree::Clone(x, attributes = TRUE)
    8. data.tree:::.Clone(node, pruneFun, attributes)
    9. node$clone()
   10. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
  ── 2. Error: ToDataFrame sub-tree (@test-treeConversionDataFrame.R#126)  ───────
  not a function
  Backtrace:
   1. data.tree::ToDataFrameTree(it)
   3. data.tree:::as.data.frame.Node(...)
   4. data.tree::Clone(x, attributes = TRUE)
   5. data.tree:::.Clone(node, pruneFun, attributes)
   6. node$clone()
   7. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
  ── 3. Error: Clone (@test-treeMethods.R#519)  ──────────────────────────────────
  not a function
  Backtrace:
   1. data.tree::Clone(acme)
   2. data.tree:::.Clone(node, pruneFun, attributes)
   3. node$clone()
   4. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
  ── 4. Error: Clone formatter (@test-treeMethods.R#542)  ────────────────────────
  not a function
  Backtrace:
   1. data.tree::Clone(acme, attributes = TRUE)
   2. data.tree:::.Clone(node, pruneFun, attributes)
   3. node$clone()
   4. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
  ── 5. Error: Clone subtree (@test-treeMethods.R#557)  ──────────────────────────
  not a function
  Backtrace:
   1. data.tree::Clone(it)
   2. data.tree:::.Clone(node, pruneFun, attributes)
   3. node$clone()
   4. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
                            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
  ── 6. Error: PruneDist 1 (@test-util.R#25)  ────────────────────────────────────
  not a function
  Backtrace:
   1. data.tree:::PrintPruneDist(acme, limit = 1)
   2. data.tree::Clone(x, pruneFun = function(x) x$.keep, attributes = TRUE)
   3. data.tree:::.Clone(node, pruneFun, attributes)
   4. node$clone()
   5. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
  ── 7. Error: PruneDist 2 (@test-util.R#35)  ────────────────────────────────────
  not a function
  Backtrace:
   1. data.tree:::PrintPruneDist(acme, limit = 5)
   2. data.tree::Clone(x, pruneFun = function(x) x$.keep, attributes = TRUE)
   3. data.tree:::.Clone(node, pruneFun, attributes)
   4. node$clone()
   5. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
  ── 8. Error: PruneSimple (@test-util.R#42)  ────────────────────────────────────
  not a function
  Backtrace:
   1. data.tree:::PrintPruneSimple(acme, limit = 5)
   2. data.tree::Clone(x, pruneFun = function(x) x$.id < limit, attributes = TRUE)
   3. data.tree:::.Clone(node, pruneFun, attributes)
   4. node$clone()
   5. base::makeActiveBinding(name, active_copies[[name]], public_bind_env)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 346 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: grViz (@test-draw.R#44) 
  2. Error: ToDataFrame sub-tree (@test-treeConversionDataFrame.R#126) 
  3. Error: Clone (@test-treeMethods.R#519) 
  4. Error: Clone formatter (@test-treeMethods.R#542) 
  5. Error: Clone subtree (@test-treeMethods.R#557) 
  6. Error: PruneDist 1 (@test-util.R#25) 
  7. Error: PruneDist 2 (@test-util.R#35) 
  8. Error: PruneSimple (@test-util.R#42) 
  
  Error: testthat unit tests failed
  Execution halted