context("hello")
test_that("hello function works with input", {
expect_equal(hello("world"), "hello world")
expect_equal(hello(name="vincent"), "hello vincent")
})
test_that("hello function works without input", {
expect_equal(hello(), "hello")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.