library(knitr)
test_knitr = function(){
#write to testRmd.html
rmarkdown::render(system.file("examples/testRmd.Rmd", package="ReportingTools"), output_dir = "./")
checkTrue(file.exists("testRmd.html"))
lines = readLines("testRmd.html")
checkTrue(length(lines)
checkTrue(length(grep("Using ReportingTools", lines)) == 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.