tests/testthat/test_disttree.R

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

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

## Check classes
tr <- disttree(dist ~ speed, data = cars)
expect_true(all(class(tr) %in% c("disttree", "modelparty", "party")))

##TODO: (ML) Implement further tests for family 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.