context("warn_na.R")
test_that("outputs warnings as expected", {
expect_warning(warn_na(c(x = 1, y = NA)))
expect_error(warn_na(c(x = 1, 1)))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.