test_that("Sort factors", {
x <- factor(c("a", "b", "b", "b", "c", "c"))
x <- SortFactor(x)
expect_equal(levels(x), c("b", "c", "a"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.