Nothing
test_that("fcompose works with numeric functions", {
f <- fcompose(sqrt, function(x) x^2, function(x) x + 1)
expect_equal(f(4), 5)
})
test_that("fcompose fails with no input functions", {
expect_error(fcompose(), "At least one function must be provided.")
})
test_that("fcompose returns original function if one is passed", {
f <- fcompose(function(x) x + 1)
expect_equal(f(3), 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.