library(Revticulate)
library(testthat)
test_that(
"Testing loadRevHistory()",
{
clearRev()
file <- tempfile()
cat(c(1:10), sep = "\n", file = file)
loadRevHistory(file)
expect_true(all(getRevHistory() == c("#START", 1:10)))
clearRev()
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.