test_that("str_col_names works", {
expect_equal(
purrr::map(
c("Sepal", "Petal", "Length", "Width"),
~ str_col_names(iris, .x)
),
list(
c("Sepal.Length", "Sepal.Width"),
c("Petal.Length", "Petal.Width"),
c("Sepal.Length", "Petal.Length"),
c("Sepal.Width", "Petal.Width")
)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.