tests/testthat/test-plot.R

test_that("arguments valid", {
  expect_error(plot.pomcheck(iris), "x must be a pomcheck object")
})

test_that("output correct", {
  expect_message(plot(pomcheck(object=c("Species"),
                          x=c("Sepal.Width", "Petal.Length"),
                          iris)),
                 "Unable to generate plot for Petal.Length")
})

Try the pomcheckr package in your browser

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

pomcheckr documentation built on June 6, 2021, 9:06 a.m.