Nothing
testthat::test_that("GenericPlot: plot function works", {
testthat::skip_if_not_installed("grDevices")
plot <- GenericPlot$new()
summary <- data.frame(c(1, 2), c(2, 3))
names(summary) <- c("k", "dispersion")
grDevices::pdf(NULL)
testthat::expect_equal(c("gg", "ggplot"), class(plot$plot(summary)))
})
testthat::test_that("GenericPlot: plot function checks parameter type", {
plot <- GenericPlot$new()
testthat::expect_error(plot$plot("wrong"),
"[GenericPlot][FATAL] Summary parameter must be defined as 'data.frame' type. Aborting...",
fixed = TRUE)
})
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.