tests/testthat/helper-forest.R

expect_equal_forest <- function(object, expected) {
  expect_equal(object$roots, expected$roots)
  expect_equal(get_nodes(object), get_nodes(expected))
  expect_equal(get_edges(object), get_edges(expected))
}

Try the timbr package in your browser

Any scripts or data that you put into this service are public.

timbr documentation built on July 17, 2026, 1:07 a.m.