Nothing
testthat::context("Test example sum function")
testthat::test_that("The sum function works", {
testthat::expect_equal(peg_sum("12,14,19,2"), 47)
})
testthat::test_that("The sum function works vectorised", {
testthat::expect_equal(length(peg_sum(c("12,14,19,2", NA_character_))), 2)
})
testthat::test_that("The sum function works with NAs", {
testthat::expect_true(is.na(peg_sum(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.