context("Utility functions")
test_that("time_now works correctly", {
t1 <- time_now()
diff <- as.numeric(Sys.time()) - t1
expect_lt(diff, 1e-2)
expect_lte(t1, time_now())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.