context("Once")
test_that("renv_once() returns TRUE only once", {
method <- function() {
expect_true(renv_once())
expect_false(renv_once())
expect_false(renv_once())
}
method()
expect_error(method())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.