tests/testthat/test-plot.R

test_that("accurate plot works", {
  expect_silent(plot(FFbenvo))
  expect_silent(plot(longitudinal_HFS))
  expect_silent(plot(longitudinal_HFS,term="HFS",component="Time"))
})

test_that("inaccurate plot errors correctly",{
  expect_error(plot(FFbenvo,term = "HFS"),regexp = "Term")
  expect_error(plot(FFbenvo,component = "Time"))
})

Try the rbenvo package in your browser

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

rbenvo documentation built on Nov. 18, 2020, 5:07 p.m.