Nothing
test_fun <- function(x) {
print(10 + x)
}
test_that("general test", {
out <- extract_function_name(test_fun)
expect_equal(out, "test_fun")
})
test_that("function undefined", {
expect_equal(extract_function_name(undef), NA_character_)
})
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.