library(testthat)
test_that("test that ploting valid vector
doesn't cause error", {
expect_equal(typeof(plotQuadPosition(c(10, 20, 30, 20, 10),
"test title")), "list")
})
test_that("test that attempting to plot empty dataframe
causes error", {
expect_error(plotQuadPosition(c(), "test quad plot"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.