Nothing
context("namedList")
test_that("namedList", {
expect_equal(namedList(), setNames(vector("list", 0), nm = character()))
expect_equal(namedList("a"), list(a=NULL))
expect_equal(namedList(c("a", "b")), list(a=NULL, b=NULL))
expect_equal(namedList(c("a", "b"), 1), list(a=1, b=1))
f = function(x) x^2
expect_equal(namedList(c("a", "b"), f(2)), list(a=4, b=4))
})
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.