Nothing
testthat::test_that("glue_err works", {
testfun <- function(a=2, template = "{a}") {
tryCatch(glue::glue(template),
error = function(cnd) saros.base:::glue_err(cnd=cnd, arg_name="testfun"))
}
testthat::expect_equal(testfun(), "2")
testthat::expect_error(testfun(a=mean), regexp = "Template is invalid")
testthat::expect_error(testfun(template="{b}"), regexp = "Template is invalid")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.