# body <- x[-idx]
# out <- fill_(body, idx, fill)
# body <- body_(x, idx)
# out <- fill_(body, idx, fill)
test_that("body_ and fill_", {
vec <- c(1,3,5,6,2)
idx <- 4
body <- body_(vec, idx)
expect_equal(fill_(body, idx, NA), c(1,3,5,NA,2))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.