test_that("YN", {
a <- c("Yes", "No", "Yes", "Not applicable", NA)
expect_identical(encode_YN(a), c(TRUE, FALSE, TRUE, NA, NA))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.