test_that("theme_lattice works", {
library(lattice)
expect_silent({
p <- levelplot(z~x+y, dvolcano)
print(p + theme_lattice(c(-4, 0, 1, 1)))
})
# file.remove("Rplots.pdf")
# expect_equal(2 * 2, 4)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.