test_that("inputs are correct", {
expect_error(frequencyStats("string"), "Expecting a Wave object")
expect_error(frequencyStats(1), "Expecting a Wave object")
})
test_that("plotting is ok", {
data(sheep, package="seewave")
expect_silent(frequencyStats(sheep, plot=TRUE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.