context("texweave")
test_that("Simple weaving accomplished correctly", {
woven <- texweave(evaluate(file("weave.r")))
cache <- str_c(c(readLines("weave.rout"), ""), collapse = "\n")
expect_that(woven, equals(cache))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.