library(testthat)
library(rtravis)
context('test')
testthat::test_that('a test',{
path <- tempfile(pattern = 'myfile',fileext = '.txt')
cat('this is a test',file = path,sep='\n')
expect_equal(readLines(path),'this is a test')
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.