context(" Utils")
test_that("to_expr returns a classed error when appropriate.", {
obj <- list(1L, "a")
expect_error(to_expr(obj))
ans <- tryCatch(to_expr(obj), dtplyr.invalid_argument_class_error = function(err) { err$obj })
expect_identical(ans, obj)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.