test_that("pull", {
expect_equal(
mtcars %>% pull_dt(2),
mtcars[,2]
)
expect_equal(
mtcars %>% pull_dt(cyl),
mtcars[["cyl"]]
)
expect_equal(
mtcars %>% pull_dt(cyl),
mtcars %>% pull_dt("cyl")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.