library(testthat)
context("Test Message")
msgFun <- function() message("Test Function")
noMsgFun <- function() return("Test Function")
test_that("message true",{
expect_true(testMessage(msgFun()))
})
test_that("message false",{
expect_false(testMessage(noMsgFun()))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.