Running 'testthat.R' [15s/15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check("data.tree")
  Loading required package: data.tree
  -- 1. Error: grViz names with quotes (@test-draw.R#143)  -----------------------
  Package "DiagrammeR" is required to convert a `data.tree::Node`to a DiagrammeR graph. Please install it.
  Backtrace:
   1. testthat::expect_equal(...)
   4. data.tree::ToDiagrammeRGraph(mytree)
  
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
                                   levelName    cost
  1  Acme Inc.                                    NA
  2   <U+00A6>--Accounting                        NA
  3   <U+00A6>   <U+00A6>--New Software      1000000
  4   <U+00A6>   °--New Accounting Standards  500000
  5   <U+00A6>--Research                          NA
  6   <U+00A6>   <U+00A6>--New Product Line  2000000
  7   <U+00A6>   °--New Labs                  750000
  8   °--IT                                       NA
  9       <U+00A6>--Outsource                 400000
  10      <U+00A6>--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
  == testthat results  ===========================================================
  [ OK: 370 | SKIPPED: 3 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: grViz names with quotes (@test-draw.R#143) 
  
  Error: testthat unit tests failed
  Execution halted