test_that("non-numeric input throws error", {
expect_error(my_rf_cv("a"))
})
test_that("prediction correct", {
expect_true(my_rf_cv(5) / var(my_gapminder$lifeExp) < 1)
expect_true(my_rf_cv(10) / var(my_gapminder$lifeExp) < 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.