context("getRuntimeMode-1")
test_that("getRuntimeMode", {
opts_old <- getOption(".rapp")
setRuntimeMode(value = "dev")
expect_equal(res <- getRuntimeMode(), "dev")
on.exit(options(".rapp" = opts_old))
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.