Nothing
library(functools)
context("Vapply()")
x <- runif(10000)
test_that("Produces the correct output.", {
expect_equal(Vapply(x, function(x) x * x, numeric(1)),
vapply(x, function(x) x * x, numeric(1)))
})
test_that("Produces the correct output type.", {
expect_is(Vapply(x, Identity, numeric(1)), "numeric")
})
test_that("Produces the correct errors.", {
expect_error(Vapply(Identity, x))
})
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.