Nothing
test_that("pause takes expected time", {
time <- system.time(pause(0.2))[[3]]
# system.time is a little inaccurate so allow 10% padding
expect_lt(abs(time - 0.2) / 0.2, 0.1)
})
test_that("works with integers", {
expect_no_error(pause(0L))
})
test_that("pause has no srcrefs", {
expect_equal(attr(pause, "srcref"), NULL)
})
test_that("checks its inputs", {
expect_snapshot(error = TRUE, {
pause(c(1, 2))
pause("a")
})
})
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.