testthat::test_that("testthat wrappers return the object", {
expect_equal(
expect_message_obj(
{
message("abc")
"foo"
},
"a"
),
"foo"
)
expect_equal(
expect_warning_obj(
{
warning("abc")
"foo"
},
"a"
),
"foo"
)
expect_equal(
expect_condition_obj(
{
message("abc")
"foo"
},
"a"
),
"foo"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.