context("Validate functionality of the newsapi validation procedure")
test_that("Validate error", {
skip_on_cran()
expect_error(newsapi_key("somekey"), "Newsapi request failed. Please validate your apikey")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.