context("create_figure_ess_distribution")
test_that("works", {
filename <- tempfile(pattern = "figure_", fileext = ".svg")
testthat::expect_false(file.exists(filename))
testthat::expect_silent(
wiritttea::create_figure_ess_distribution(
parameters = wiritttea::read_collected_parameters(),
esses = wiritttea::read_collected_esses(),
filename = filename
)
)
testthat::expect_true(file.exists(filename))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.