test_that("multiplication works", {
res <- loc_expr_to_ids(mtcars, quote(mpg == 21), axis = 'row')
expect_identical(res, c(1L, 2L))
res <- loc_expr_to_ids(mtcars, quote(mpg), axis = 'column')
expect_identical(res, which(colnames(mtcars) == 'mpg'))
res <- loc_expr_to_ids(mtcars, quote(c(1, 2, 3)), axis = 'column')
expect_identical(res, c(1, 2, 3))
res <- loc_expr_to_ids(mtcars, quote(ends_with('t')), axis = 'column')
expect_identical(res, c(5L, 6L))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.