Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(prof.tree)
  > 
  > test_check("prof.tree")
  -- 1. Error: Print prof.tree returns a data.frame (@test-print.R#6)  -----------
  not a function
  1: print(tree) at testthat/test-print.R:6
  2: print.ProfTree(tree)
  3: NextMethod("print", x, "real", "percent", "env", limit = limit, pruneMethod = "dist")
  4: print.Node(tree, limit = 10, pruneMethod = "dist")
  5: PrintPruneDist(x, limit = limit)
  6: Clone(x, pruneFun = function(x) x$.keep, attributes = TRUE)
  7: .Clone(node, pruneFun, attributes)
  8: node$clone()
  9: copy_slice(old[[i]], new[[i]], old_new_enclosing_pairs[seq.int(i, length(old))], 
         (i == 1))
  10: makeActiveBinding(name, active_copies[[name]], new_slice$binding)
  
  -- 2. Error: Print contains (@test-print.R#11)  --------------------------------
  not a function
  1: expect_output(print(tree), "levelName") at testthat/test-print.R:11
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: print(tree)
  11: print.ProfTree(tree)
  12: NextMethod("print", x, "real", "percent", "env", limit = limit, pruneMethod = "dist")
  13: print.Node(tree, limit = 10, pruneMethod = "dist")
  14: PrintPruneDist(x, limit = limit)
  15: Clone(x, pruneFun = function(x) x$.keep, attributes = TRUE)
  16: .Clone(node, pruneFun, attributes)
  17: node$clone()
  18: copy_slice(old[[i]], new[[i]], old_new_enclosing_pairs[seq.int(i, length(old))], 
         (i == 1))
  19: makeActiveBinding(name, active_copies[[name]], new_slice$binding)
  
  == testthat results  ===========================================================
  [ OK: 26 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: Print prof.tree returns a data.frame (@test-print.R#6) 
  2. Error: Print contains (@test-print.R#11) 
  
  Error: testthat unit tests failed
  Execution halted