tests/testthat/test_distforest.R

# -------------------------------------------------------------------
# - NAME:   test_distforest.R
# - AUTHOR: Moritz N. Lang, Lisa Schlosser
# - DATE:   2019-08-12
# -------------------------------------------------------------------
# - PURPOSE: Tests for plausibility of forest
# -------------------------------------------------------------------

context("test of plausibility of distforest()'")

## Check classes
tr <- distforest(dist ~ speed, data = cars)
expect_true(all(class(tr) %in% c("distforest", "constparties", "parties")))

##TODO: (ML) Implement further tests for varimp() etc.

Try the disttree package in your browser

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

disttree documentation built on Aug. 14, 2019, 3 a.m.