tests/testthat/test-fit_plot.R

test_that("Check output for fit_plot", {
  result <- fit_plot(exres)
  expect_s3_class(result, 'ggplot')
})

test_that("Check output for fit_plot, scatter = TRUE", {
  result <- fit_plot(exres, scatter = TRUE)
  expect_s3_class(result, 'ggplot')
})

test_that("Check output for fit_plot, bygroup = TRUE", {
  result <- fit_plot(exres, bygroup = TRUE)
  expect_s3_class(result, 'ggplot')
})

Try the EBASE package in your browser

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

EBASE documentation built on Sept. 26, 2024, 1:08 a.m.