tests/testthat/test-node.R

test_that("predict_node works", {
  node <- list("type" = "bad")
  expect_error(
    predict_node(node = node, X = 1, tree = 1),
    "incorrect node type"
  )
})

Try the recforest package in your browser

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

recforest documentation built on April 12, 2025, 9:17 a.m.