Running 'testthat.R' [16s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check("data.tree")
  Loading required package: data.tree
  -- 1. Error: ToDataFrame sub-tree (@test-treeConversionDataFrame.R#128)  -------
  could not find function "str_sub"
  Backtrace:
   1. testthat::expect_equal(str_sub(df[1, 1], 1, 2), "IT")
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  [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$fields will be deprecated in the next release. Please use Node$attributes 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."
  [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$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$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
  [1] "Node$fields will be deprecated in the next release. Please use Node$attributes instead."
                            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
  [1] "Node$fieldsAll will be deprecated in the next release. Please use Node$attributesAll instead."
    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: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: ToDataFrame sub-tree (@test-treeConversionDataFrame.R#128) 
  
  Error: testthat unit tests failed
  Execution halted