test_that("Non existent layout and panels", {
# Error if provide panel id not in layout
expect_error(print(arphitgg(data.frame(x = 1:10, y = 1:10)) +
agg_line(agg_aes(x = x, y = y),
panel = "3")),
"Your chosen layout (1) does not have a panel 3.",
fixed = TRUE)
# Error if invalid layout
expect_error(print(arphitgg(layout = "foo")),
"Unknown layout option foo")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.