context("Filter: Relief")
if (require("FSelector")) {
test_that("Basic comparsion with FSelector", {
fs <- withr::with_seed(123, FSelector::relief(Species ~ ., iris))
fs2 <- withr::with_seed(123, .relief(Species ~ ., iris))
fs3 <- withr::with_seed(123, relief(x = iris[-5], y = iris$Species))
expect_equal(fs[[1]], fs2[[2]])
expect_equal(fs[[1]], fs3[[2]])
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.