library(testthat)
library(Revticulate)
test_that(
"Testing getRevHistory()",
{
skip_on_os("windows")
clearRev()
expect_equal(getRevHistory(), character(0))
times <- as.integer(runif(1)*15)
for(i in 1:times){
doRev(i)
}
expect_length(getRevHistory(), times)
clearRev()
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.