test_that("check data.table structure in computenspi", {
expect_error(computenspi(x = list(), stationaryspi = TRUE, spiScale = 12, dist = 'gamma'),
"x should be in data.table or data.frame format")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.