context("test-shrink")
test_that("an outcome can also be a predictor and is only returned once", {
x <- mold(Sepal.Length ~ Sepal.Length, iris)
expect_equal(
colnames(shrink(iris, x$blueprint$ptypes$predictors)),
"Sepal.Length"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.