tests/testthat/test-0-11-m4-plots.R

testthat::test_that("M4 backend-free plots return ggplot objects", {
  testthat::skip_if_not_installed("ggplot2")
  sim <- simulate_multimodal_m4(n_person = 10L, n_item = 6L, seed = 107L)
  states <- multimodal_m4_state_diagnostics(sim)
  audit <- audit_multimodal_m4_identifiability(sim, include_posterior = FALSE)
  testthat::expect_s3_class(plot(sim), "ggplot")
  testthat::expect_s3_class(plot(states), "ggplot")
  testthat::expect_s3_class(plot(audit), "ggplot")
})

Try the eyeprocess package in your browser

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

eyeprocess documentation built on Sept. 28, 2026, 5:08 p.m.