test_that("remove srcref from function", {
f = function(x) NULL
attr(f, "srcref") = "mock_srcrefs"
f_strip = strip_srcrefs(f)
expect_true(is.null(attr(f_strip, "srcref")))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.