test_that("vlaanderen_2015_colours", {
for (i in 1:10) {
suppressWarnings(expect_identical(length(vlaanderen_palette(i)), i))
}
expect_error(
vlaanderen_palette(20),
"Reduce the number of factor levels"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.