context("test-list")
fitted_rf <- function(...) tidypredict_fit(parse_model(...))
test_that("Supports parsed models in list objects", {
expect_is(
fitted_rf(lm(mpg ~ wt, data = mtcars)),
"call"
)
expect_equal(
length(fitted_rf(
randomForest::randomForest(Species ~ ., data = iris)
)),
500
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.