context("test-volplot")
test_that("Test volplot", {
opt <- readRDS("test_objects/test_summary.rds")
plt <- plot(opt)
expect_is(plt, "ggplot")
plt <- plot(opt, plot_log = FALSE)
expect_true(all(plt$data$volatility > 0))
expect_error(plot(opt, forecast = 0))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.