test_that("map_if works with function predicates", {
expect_equal(
map_if(letters[1:5], function(x) identical(x, "c"), toupper),
list("a", "b", "C", "d", "e")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.