test_that('test-save', {
train <- suppressWarnings(train(iris, 'Sepal.Width', verbose = FALSE, random_evals = 2, bayes_iter = 0))
name <- save_forest(train, return_name = TRUE)
train2 <- readRDS(name)
expect_equal(length(train), length(train2))
file.remove(name)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.