test_that("test_url", {
output = tempfile()
expect_message(test_url(link = "http://httpbin.org/status/404",
output = output))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.