context("test-square")
test_that("multiplication works", {
expect_equal(2 * 2, 4)
expect_equal(square(2), 4)
expect_equal(square(1:3), c(1,4,9))
expect_equal(square("1"), c(1))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.