tests/testthat/test_plot_statespace_ch.R

context("test plot_statespace_ch")

# Test data input validation
test_that("test error messages", {
  expect_error(plot_statespace_ch(), "Argument x is missing")
  expect_error(plot_statespace_ch(x = 1:10), "x has to be a list")
})

Try the INDperform package in your browser

Any scripts or data that you put into this service are public.

INDperform documentation built on Jan. 11, 2020, 9:08 a.m.