Nothing
test_that("condformat2latex works", {
data(iris)
x <- condformat(head(iris, n = 2))
out <- condformat2latex(x)
expect_match(out, "Sepal.Length & Sepal.Width & Petal.Length & Petal.Width & Species")
})
test_that("condformat2latex does not use longtable if disabled", {
data(iris)
on.exit(knitr::opts_knit$set(rmarkdown.pandoc.to = NULL, out.format = NULL))
knitr::opts_knit$set(out.format = "latex", rmarkdown.pandoc.to = "latex")
knitr::opts_current$set(longtable = FALSE)
out <- knitr::knit_print(condformat(head(iris)))
expect_match(out[1], "tabular")
})
test_that("knitr latex returns LaTeX code", {
data(iris)
on.exit(knitr::opts_knit$set(rmarkdown.pandoc.to = NULL, out.format = NULL))
knitr::opts_knit$set(out.format = "latex", rmarkdown.pandoc.to = "latex")
out <- knitr::knit_print(condformat(head(iris)))
expect_match(out[1], "Sepal.Length & Sepal.Width & Petal.Length & Petal.Width & Species")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.