Nothing
test_that("one value", {
out <- rconstant(n=1, 10)
expect_equal(out, 10)
out <- rconstant(n=1, "BLA")
expect_equal(out, "BLA")
})
test_that("multiple values", {
out <- rconstant(n=10, 10)
expect_equal(out, rep(10, 10))
out <- rconstant(n=10, "BLA")
expect_equal(out, rep("BLA", 10))
})
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.