context("replaceNAwithZero tests")
test_that("Test replace NAs with Zeroes", {
y <- c(1, NA, 3)
x <- replaceNAwithZero(y)
expect_equal(x, c(1, 0, 3))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.